diff options
author | Lartza | 2021-02-14 01:38:46 +0200 |
---|---|---|
committer | Lartza | 2021-02-14 01:38:46 +0200 |
commit | 690131d0455e393976dbaed90172f6434f2b4b4f (patch) | |
tree | 7b2843279acb050959dcfc0e83953d1723242f52 /PKGBUILD | |
parent | 377cb2cfad852263850bd807855be7936dddec85 (diff) | |
download | aur-lottanzb-bzr.tar.gz |
Update for makepkg bzr support
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 13 insertions, 23 deletions
@@ -1,16 +1,17 @@ -# Maintainer: Lari Tikkanen <lartza at wippies.com> +# Maintainer: Lari Tikkanen <lartza at outlook.com> # Contributor: Samed Beyribey <ras0ir AT eventualis DOT org> # Contributor: Nelson VuDu <vudu DOT curse AT gmail DOT com> pkgname=lottanzb-bzr -pkgver=1732 +_pkgname=lottanzb +pkgver=r1740 pkgrel=1 pkgdesc="A SABnzbd+ (Usenet binary downloader) GUI front-end written in PyGTK (bzr version)" arch=('any') url="http://www.lottanzb.org/" license=('GPL') -depends=('python2-dbus' 'python2-configobj' 'pygtk' 'hicolor-icon-theme' 'desktop-file-utils') -makedepends=('intltool' 'bzr') +depends=('python2-dbus' 'python2-configobj' 'pygtk' 'hicolor-icon-theme') +makedepends=('intltool' 'bzr' 'python-dulwich' 'python2-setuptools') optdepends=('sabnzbd: for local downloading' 'par2cmdline: for checking and repairing downloads' 'pyopenssl: for SSL encryption and HTTPS remote access' @@ -22,31 +23,20 @@ optdepends=('sabnzbd: for local downloading' 'intltool: for translation support') provides=('lottanzb') conflicts=('lottanzb') -install=${pkgname}.install +source=(bzr+lp:lottanzb) +sha256sums=('SKIP') -_bzrmod=trunk -_bzrbranch=lp:lottanzb/${_bzrmod} +pkgver() { + cd "${_pkgname}" + printf "r%s" "$(bzr revno)" +} build() { - cd ${srcdir} - - if [ -d ${_bzrmod}/.bzr ]; then - (cd ${_bzrmod} && bzr pull -r ${pkgver}) - else - bzr branch ${_bzrbranch} ${_bzrmod} - fi - - msg "BZR checkout done or server timeout" - msg "Starting make..." - - rm -rf "${srcdir}/${_bzrmod}-build" - cp -r "${srcdir}/${_bzrmod}" "${srcdir}/${_bzrmod}-build" - cd "${srcdir}/${_bzrmod}-build" - + cd "${_pkgname}" python2 setup.py build } package() { - cd ${srcdir}/${_bzrmod}-build + cd "${_pkgname}" python2 setup.py install --packaging-mode --root=${pkgdir} --prefix=/usr } |