chirp-hg/PKGBUILD

30 lines
742 B
Bash
Raw Normal View History

2016-06-04 03:06:18 +00:00
# Maintainer: David Thurstenson thurstylark@gmail.com
pkgname=chirp-hg
pkgver=r2802+.c386ef4dc431+
2016-06-04 03:06:18 +00:00
pkgrel=1
pkgdesc="GUI tool for programming ham radios, built from hg repo"
arch=('any')
url="http://chirp.danplanet.com/"
license=('GPL')
depends=('python2-lxml' 'python2-pyserial' 'desktop-file-utils' 'pygtk' 'curl')
makedepends=('mercurial')
2016-06-04 03:18:58 +00:00
provides=('chirp')
2016-06-04 03:06:18 +00:00
conflicts=('chirp' 'chirp-daily')
source=('chirp-hg::hg+http://d-rats.com/hg/chirp.hg')
2016-06-04 03:06:18 +00:00
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
prepare() {
sed -i 's|/usr/sbin|/usr/bin|' $srcdir/$pkgname/setup.py
}
2016-06-04 03:06:18 +00:00
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --root="$pkgdir/" --optimize=1
2016-06-04 03:06:18 +00:00
}