chirp-hg/PKGBUILD

59 lines
1.4 KiB
Bash
Raw Normal View History

2017-04-16 01:37:14 +00:00
# Co-Maintainer: David Thurstenson thurstylark@gmail.com
# Co-Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Contributor: Erez Raviv (erezraviv@gmail.com)
# Contributor: Mathew Hiles (matthew.hiles@gmail.com)
# Contributor: Nicholas Tryon (KC2YTG) <dhraak at gmail dot com>
2016-06-04 03:06:18 +00:00
pkgname=chirp-hg
2017-04-16 01:37:14 +00:00
_pkgname=chirp
pkgver=20170415
2016-06-04 03:06:18 +00:00
pkgrel=1
2017-04-16 01:37:14 +00:00
pkgdesc="GUI tool for programming Ham Radios - HG/Complete version"
2016-06-04 03:06:18 +00:00
arch=('any')
url="http://chirp.danplanet.com/"
2017-04-16 01:37:14 +00:00
license=('GPL3')
depends=('python2-lxml' 'python2-pyserial' 'pygtk' 'hamradio-menus')
2016-06-04 03:06:18 +00:00
makedepends=('mercurial')
2017-04-16 01:37:14 +00:00
options=('!emptydirs')
2016-06-04 03:18:58 +00:00
provides=('chirp')
2017-04-16 01:37:14 +00:00
conflicts=('chirp-daily')
install=$_pkgname.install
source=("$_pkgname::hg+http://d-rats.com/hg/$_pkgname.hg")
2016-06-04 03:06:18 +00:00
pkgver() {
2017-04-16 01:37:14 +00:00
cd $srcdir/$_pkgname
date +%Y%m%d
2016-06-04 03:06:18 +00:00
}
prepare() {
2017-04-16 01:37:14 +00:00
cd $srcdir/$_pkgname
sed -i -e 's|/usr/sbin|/usr/bin|g' setup.py
sed -i 's:python:python2:' chirpc
date +%Y%m%d > build/version
export VERSION=$(cat build/version)
sed -i -e 's/^CHIRP_VERSION.*$/CHIRP_VERSION=\"'$VERSION'-arch-dev\"/' chirp/__init__.py
}
build() {
cd $srcdir/$_pkgname
python2 setup.py build
}
2016-06-04 03:06:18 +00:00
package() {
2017-04-16 01:37:14 +00:00
cd $srcdir/$_pkgname
python2 setup.py install --root="$pkgdir/" --optimize=1
2017-04-16 01:37:14 +00:00
install -m755 chirpc $pkgdir/usr/bin
rm -rf $pkgdir/usr/share/doc/$_pkgname/COPYING
install -m644 README.chirpc $pkgdir/usr/share/doc/$_pkgname
install -m644 README.rpttool $pkgdir/usr/share/doc/$_pkgname
2016-06-04 03:06:18 +00:00
}
2017-04-16 01:37:14 +00:00
md5sums=('SKIP')
sha256sums=('SKIP')