diff options
Diffstat (limited to 'extra/barcode')
-rw-r--r-- | extra/barcode/PKGBUILD | 19 | ||||
-rw-r--r-- | extra/barcode/barcode.install | 6 |
2 files changed, 11 insertions, 14 deletions
diff --git a/extra/barcode/PKGBUILD b/extra/barcode/PKGBUILD index b69e764d5..9d264fd57 100644 --- a/extra/barcode/PKGBUILD +++ b/extra/barcode/PKGBUILD @@ -1,31 +1,28 @@ -# $Id: PKGBUILD 143715 2011-11-28 16:39:50Z giovanni $ +# $Id: PKGBUILD 181063 2013-03-31 07:43:24Z giovanni $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> pkgname=barcode -pkgver=0.98 -pkgrel=4 +pkgver=0.99 +pkgrel=1 pkgdesc="A tool to convert text strings to printed bars" arch=('i686' 'x86_64') url="http://www.gnu.org/software/barcode/" license=('GPL') depends=('glibc') install=barcode.install -source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz") -md5sums=('7f10c3307b84a19a4ab2fa4b3f2974da') +source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz") +md5sums=('cdc504ee1020e27fbfeebcb0718de054') build() { cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info + ./configure --prefix=/usr + make } package() { cd "${srcdir}/${pkgname}-${pkgver}" - make prefix="${pkgdir}/usr" MAN1DIR="${pkgdir}/usr/share/man/man1" \ - MAN3DIR="${pkgdir}/usr/share/man/man3" INFODIR="${pkgdir}/usr/share/info" install || return 1 - gzip ${pkgdir}/usr/share/info/barcode.info + make prefix="${pkgdir}/usr" install } diff --git a/extra/barcode/barcode.install b/extra/barcode/barcode.install index 2f566fcfd..83966a37d 100644 --- a/extra/barcode/barcode.install +++ b/extra/barcode/barcode.install @@ -2,18 +2,18 @@ infodir=/usr/share/info filelist=(barcode.info.gz) post_install() { - [ -x usr/bin/install-info ] || return 0 + [ -x usr/bin/install-info ] for file in ${filelist[@]}; do install-info $infodir/$file $infodir/dir 2> /dev/null done } post_upgrade() { - post_install $1 + post_install } pre_remove() { - [ -x usr/bin/install-info ] || return 0 + [ -x usr/bin/install-info ] for file in ${filelist[@]}; do install-info --delete $infodir/$file $infodir/dir 2> /dev/null done |