diff options
author | Tinu Weber | 2018-01-06 14:43:31 +0100 |
---|---|---|
committer | Tinu Weber | 2018-01-06 14:43:31 +0100 |
commit | e020c15ed2c75eece88381fcaf1a1b311e832746 (patch) | |
tree | ca0b47183ca23ba121bcce9f8d5f96d2c7678737 /PKGBUILD | |
parent | 0bcba39f2fb7ebd8e427ed8456c538798e3b5494 (diff) | |
download | aur-e020c15ed2c75eece88381fcaf1a1b311e832746.tar.gz |
Improve style: Remove path ambiguity in pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -4,18 +4,22 @@ pkgname=epfl-menu-git _pkgname=epfl-menu pkgver=r16.2406823 pkgrel=4 + pkgdesc='Pretty-print the lunch and supper menus at the EPFL' -arch=('any') +arch=(any) url='https://github.com/gcmalloc/epfl-menu' -license=('custom:Beerware') -makedepends=('python-setuptools') -conflicts=('epfl-menu') -provides=('epfl-menu') +license=(custom:Beerware) + +makedepends=(python-setuptools) + +conflicts=(epfl-menu) +provides=(epfl-menu) + source=('git+https://github.com/gcmalloc/epfl-menu') -md5sums=('SKIP') +md5sums=(SKIP) pkgver() { - cd "$_pkgname" + cd "$srcdir/$_pkgname" printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } @@ -25,7 +29,7 @@ build() { } package() { - depends=('python-beautifulsoup4' 'python-urllib3') + depends=(python-beautifulsoup4 python-urllib3) cd "$srcdir/$_pkgname" python3 setup.py install --root="$pkgdir" --optimize=1 |