diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 16 insertions, 13 deletions
@@ -1,17 +1,20 @@ pkgbase = epfl-menu-git pkgdesc = Pretty-print the lunch and supper menus at the EPFL pkgver = r16.2406823 - pkgrel = 5 + pkgrel = 6 url = https://github.com/gcmalloc/epfl-menu arch = any license = custom:Beerware + makedepends = coreutils makedepends = python-setuptools + depends = python provides = epfl-menu conflicts = epfl-menu source = git+https://github.com/gcmalloc/epfl-menu md5sums = SKIP pkgname = epfl-menu-git + depends = python depends = python-beautifulsoup4 depends = python-urllib3 @@ -1,16 +1,16 @@ -# Maintainer: Tinu Weber <martin.weber@epfl.ch> +# Maintainer: Tinu Weber <https://gnugen.ch/~mtweber> pkgname=epfl-menu-git -_pkgname=epfl-menu pkgver=r16.2406823 -pkgrel=5 +pkgrel=6 +arch=(any) pkgdesc='Pretty-print the lunch and supper menus at the EPFL' -arch=(any) url='https://github.com/gcmalloc/epfl-menu' license=(custom:Beerware) -makedepends=(python-setuptools) +depends=(python) +makedepends=(coreutils python-setuptools) conflicts=(epfl-menu) provides=(epfl-menu) @@ -19,21 +19,21 @@ source=('git+https://github.com/gcmalloc/epfl-menu') md5sums=(SKIP) pkgver() { - cd "$srcdir/$_pkgname" - printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd epfl-menu + printf 'r%d.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$srcdir/$_pkgname" + cd epfl-menu python3 setup.py build } package() { - depends=(python-beautifulsoup4 python-urllib3) + depends+=(python-beautifulsoup4 python-urllib3) - cd "$srcdir/$_pkgname" + cd epfl-menu python3 setup.py install --root="$pkgdir" --optimize=1 - mkdir -p "$pkgdir"/usr/share/licenses/epfl-menu - head -n 8 epfl/menu.py > "$pkgdir"/usr/share/licenses/epfl-menu/LICENSE + mkdir -p "$pkgdir"/usr/share/licenses/"$pkgname" + head -n8 epfl/menu.py >"$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE } |