Moving back to a sane PKGBUILD.

This commit is contained in:
David Thurstenson 2017-04-18 09:42:34 -05:00
parent ce5f8dce8b
commit 178268c709
2 changed files with 21 additions and 50 deletions

View File

@ -1,22 +1,21 @@
pkgbase = chirp-hg pkgbase = chirp-hg
pkgdesc = GUI tool for programming Ham Radios - HG/Complete version pkgdesc = GUI tool for programming ham radios, built from hg repo
pkgver = 20170415 pkgver = r2879.2c4bb936f964
pkgrel = 1 pkgrel = 1
epoch = 1
url = http://chirp.danplanet.com/ url = http://chirp.danplanet.com/
install = chirp.install
arch = any arch = any
license = GPL3 license = GPL3
makedepends = mercurial makedepends = mercurial
depends = python2-lxml depends = python2-lxml
depends = python2-pyserial depends = python2-pyserial
depends = pygtk depends = pygtk
depends = hamradio-menus depends = curl
optdepends = hamradio-menus: XDG menus for ham radio software
provides = chirp provides = chirp
conflicts = chirp-daily conflicts = chirp
options = !emptydirs source = hg+http://d-rats.com/hg/chirp.hg
source = chirp::hg+http://d-rats.com/hg/chirp.hg
md5sums = SKIP md5sums = SKIP
sha256sums = SKIP
pkgname = chirp-hg pkgname = chirp-hg

View File

@ -1,58 +1,30 @@
# Co-Maintainer: David Thurstenson thurstylark@gmail.com # 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>
pkgname=chirp-hg pkgname=chirp-hg
_pkgname=chirp pkgver=r2879.2c4bb936f964
pkgver=20170415 epoch=1
pkgrel=1 pkgrel=1
pkgdesc="GUI tool for programming Ham Radios - HG/Complete version" pkgdesc="GUI tool for programming ham radios, built from hg repo"
arch=('any') arch=('any')
url="http://chirp.danplanet.com/" url="http://chirp.danplanet.com/"
license=('GPL3') license=('GPL3')
depends=('python2-lxml' 'python2-pyserial' 'pygtk' 'hamradio-menus') depends=('python2-lxml' 'python2-pyserial' 'pygtk' 'curl')
optdepends=('hamradio-menus: XDG menus for ham radio software')
makedepends=('mercurial') makedepends=('mercurial')
options=('!emptydirs')
provides=('chirp') provides=('chirp')
conflicts=('chirp-daily') conflicts=('chirp')
install=$_pkgname.install source=('hg+http://d-rats.com/hg/chirp.hg')
source=("$_pkgname::hg+http://d-rats.com/hg/$_pkgname.hg") md5sums=('SKIP')
pkgver() { pkgver() {
cd $srcdir/$_pkgname cd chirp.hg
hg tip --template 'r{rev}.{node|short}'
date +%Y%m%d
} }
prepare() { prepare() {
cd $srcdir/$_pkgname sed -i 's|/usr/sbin|/usr/bin|' chirp.hg/setup.py
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
} }
package() { package() {
cd $srcdir/$_pkgname cd chirp.hg
python2 setup.py install --root="$pkgdir" --optimize=1
python2 setup.py install --root="$pkgdir/" --optimize=1
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
} }
md5sums=('SKIP')
sha256sums=('SKIP')