Added prepare() to avoid putting anything in /usr/sbin (thanks TingPing)

This commit is contained in:
David Thurstenson 2016-06-03 23:23:10 -05:00
parent 265abfb1a0
commit a7812acf6f
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
pkgbase = chirp-hg
pkgdesc = GUI tool for programming ham radios, built from hg repo
pkgver = 1.0
pkgver = r2714.333a280ca0c4
pkgrel = 1
url = http://chirp.danplanet.com/
arch = any
@ -14,7 +14,7 @@ pkgbase = chirp-hg
provides = chirp
conflicts = chirp
conflicts = chirp-daily
source = chirp-hg::http://d-rats.com/hg/chirp.hg
source = chirp-hg::hg+http://d-rats.com/hg/chirp.hg
md5sums = SKIP
pkgname = chirp-hg

View File

@ -1,6 +1,6 @@
# Maintainer: David Thurstenson thurstylark@gmail.com
pkgname=chirp-hg
pkgver=r2714.333a280ca0c4
pkgver=r2714+.333a280ca0c4+
pkgrel=1
pkgdesc="GUI tool for programming ham radios, built from hg repo"
arch=('any')
@ -19,6 +19,10 @@ pkgver() {
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
prepare() {
sed -i 's|/usr/sbin|/usr/bin|' $srcdir/$pkgname/setup.py
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --root="$pkgdir/" --optimize=1