diff options
author | PommeDroid | 2019-08-15 04:04:45 +0200 |
---|---|---|
committer | PommeDroid | 2019-08-15 04:04:45 +0200 |
commit | 62fee7018dfdf0e21084083628a61f0c06acdf1c (patch) | |
tree | eb0bd5fb74d25e60ab88257a37ad5405e118f37b /PKGBUILD | |
download | aur-62fee7018dfdf0e21084083628a61f0c06acdf1c.tar.gz |
initial : v1.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9cf33491f7e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: PommeDroid <pommedroid@dreamnet.tech> + +pkgname=dreampower +pkgver=1.0.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') +makedepends=('git' 'python' 'python-virtualenv' 'python-pip') +provides=('dreampower') +conflicts=('dreampower-cpu') +source=( + "$pkgname-$pkgver::git+${url}.git#tag=v$pkgver" + 'dreampower' + 'fix.patch' +) +md5sums=( + 'SKIP' + '3d4dd155d414eb1c8484731eb339e596' + '3675517801179a988eca1f4467b8fe87' +) + +prepare() { + patch -p1 -d "$pkgname-$pkgver" < "fix.patch" + + 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" +} |