blob: 3e2e1c01b6341ec75e58823ca06c2f3ecec8f565 (
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
|
# Maintainer: PommeDroid <pommedroid@dreamnet.tech>
pkgname=dreampower
pkgver=1.1.0
pkgrel=1
pkgdesc='CLI application that allow to transform photos of people for private entertainment - With 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-cpu')
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
}
build() {
source "$pkgname-$pkgver/venv/bin/activate"
cd "$pkgname-$pkgver/scripts"
python build.py
}
package() {
install -dm755 "$pkgdir/opt"
cp -R "$pkgname-$pkgver/dist/dreampower" "$pkgdir/opt/$pkgname"
chmod -R 755 "$pkgdir/opt/$pkgname/"
install -Dm755 dreampower "$pkgdir/usr/bin/$pkgname"
}
|