diff options
author | csculley | 2019-09-10 00:57:46 -0400 |
---|---|---|
committer | csculley | 2019-09-10 00:57:46 -0400 |
commit | 42b0fdb8c61b9b2d60a2962ad9d888d03d9d5894 (patch) | |
tree | 66f55a61a7a7154550fcce2c326ce3d13b95a6f7 | |
parent | fea0926025b3a2e204bcf18d6eca2c01399f9f1f (diff) | |
download | aur-42b0fdb8c61b9b2d60a2962ad9d888d03d9d5894.tar.gz |
python build fixed
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 9 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = sleepplan-git pkgdesc = Calculate times to wake up based on bedtimes, and vice versa. - pkgver = r18.1af9c51 - pkgrel = 4 + pkgver = r19.0389933 + pkgrel = 1 url = https://gitlab.com/csculley/sleepplan arch = any license = GPL3 @@ -10,7 +10,7 @@ pkgbase = sleepplan-git depends = python3 provides = sleepplan conflicts = sleepplan - source = sleepplan::git+https://gitlab.com/csculley/sleepplan.git#branch=master + source = sleepplan-git-r19.0389933::git+https://gitlab.com/csculley/sleepplan.git#branch=master md5sums = SKIP pkgname = sleepplan-git @@ -1,7 +1,7 @@ # Maintainer: Christopher Sculley <cs.sculley at gmail dot com> pkgname=sleepplan-git -pkgver=r18.1af9c51 -pkgrel=4 +pkgver=r19.0389933 +pkgrel=1 pkgdesc="Calculate times to wake up based on bedtimes, and vice versa." arch=('any') license=('GPL3') @@ -10,12 +10,11 @@ depends=('python3') makedepends=('git' 'python-setuptools') provides=('sleepplan') conflicts=('sleepplan') -source=("sleepplan::git+https://gitlab.com/csculley/sleepplan.git#branch=master") +source=("$pkgname-$pkgver::git+https://gitlab.com/csculley/sleepplan.git#branch=master") md5sums=('SKIP') pkgver() { - mv sleepplan "$pkgname" - cd "$pkgname" + cd "$pkgname-$pkgver" ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" @@ -23,6 +22,6 @@ pkgver() { } package() { - cd "$pkgname" - python setup.py install --root="$pkgdir" + cd "$srcdir/$pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 } |