blob: 3fbf434b7b501be34614eb2fe89e2bdb39893c0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: PommeDroid <pommedroid@dreamnet.tech>
pkgname=dreampower-cpu
pkgver=1.1.0
pkgrel=1
pkgdesc='CLI application that allow to transform photos of people for private entertainment - No CUDA support'
arch=('x86_64')
options=(!strip)
url='https://github.com/private-dreamnet/dreampower'
license=('GPL3')
depends=('dreampower-checkpoints' 'libxrender')
makedepends=('git' 'python' 'python-virtualenv' 'python-pip' 'tk' 'libsm')
provides=('dreampower')
conflicts=('dreampower')
source=(
"$pkgname-$pkgver::git+${url}.git#tag=v$pkgver"
'dreampower'
)
md5sums=(
'SKIP'
'3d4dd155d414eb1c8484731eb339e596'
)
prepare() {
cd "$pkgname-$pkgver"
virtualenv venv
source venv/bin/activate
cd "scripts"
python setup.py --cpu
}
build() {
source "$pkgname-$pkgver/venv/bin/activate"
cd "$pkgname-$pkgver/scripts"
python build.py
}
package() {
local name="dreampower"
install -dm755 "$pkgdir/opt"
cp -R "$pkgname-$pkgver/dist/$name" "$pkgdir/opt/"
chmod -R 755 "$pkgdir/opt/$name/"
install -Dm755 dreampower "$pkgdir/usr/bin/$name"
}
|