summaryrefslogtreecommitdiff
path: root/extra/barcode/PKGBUILD
blob: 99dcd775553d522c4eb005c5327b80ec9bf261ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 115997 2011-03-22 15:15:09Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=barcode
pkgver=0.98
pkgrel=3
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')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --mandir=/usr/share/man \
              --infodir=/usr/share/info
  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
}