summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTinu Weber2017-06-13 19:32:13 +0200
committerTinu Weber2017-06-13 19:32:13 +0200
commit0bcba39f2fb7ebd8e427ed8456c538798e3b5494 (patch)
tree135b4bbab56c322444ba423bffc72a48a3680384
parentc60d17a63dc63268b4021efc40ecf637a0e6ad8b (diff)
downloadaur-0bcba39f2fb7ebd8e427ed8456c538798e3b5494.tar.gz
Install `menu` command as is
It's closer to upstream, handier to type, and I haven't found any official package where this would conflict with.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ce25a4290142..a195acb9f23b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = epfl-menu-git
pkgdesc = Pretty-print the lunch and supper menus at the EPFL
pkgver = r16.2406823
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/gcmalloc/epfl-menu
arch = any
license = custom:Beerware
diff --git a/PKGBUILD b/PKGBUILD
index cb1af0d9b7c4..5e8fadecdc45 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=epfl-menu-git
_pkgname=epfl-menu
pkgver=r16.2406823
-pkgrel=3
+pkgrel=4
pkgdesc='Pretty-print the lunch and supper menus at the EPFL'
arch=('any')
url='https://github.com/gcmalloc/epfl-menu'
@@ -26,9 +26,10 @@ build() {
package() {
depends=('python-beautifulsoup4' 'python-urllib3')
+
cd "$srcdir/$_pkgname"
python3 setup.py install --root="$pkgdir" --optimize=1
- mv "$pkgdir"/usr/bin/menu "$pkgdir"/usr/bin/epfl-menu
+
mkdir -p "$pkgdir"/usr/share/licenses/epfl-menu
head -n 8 epfl/menu.py > "$pkgdir"/usr/share/licenses/epfl-menu/LICENSE
}