Added prepare() to avoid putting anything in /usr/sbin (thanks TingPing)
This commit is contained in:
parent
265abfb1a0
commit
a7812acf6f
4
.SRCINFO
4
.SRCINFO
|
@ -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
|
||||
|
|
6
PKGBUILD
6
PKGBUILD
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue