summaryrefslogtreecommitdiff
path: root/extra/mtx/PKGBUILD
blob: 4b014ac72dae1cbd85ff91ebf68fece8bd2fdc04 (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
# $Id: PKGBUILD 137902 2011-09-12 10:18:06Z allan $
# Maintainer:
# Contributer: Judd Vinet <jvinet@zeroflux.org>

pkgname=mtx
pkgver=1.3.12
pkgrel=2
pkgdesc="Send robot commands to tape changer"
arch=('i686' 'x86_64')
url="http://mtx.opensource-sw.net/"
license=('GPL2')
depends=('glibc')
source=(http://downloads.sourceforge.net/mtx/${pkgname}-${pkgver}.tar.gz)
md5sums=('ce8f0e44671fb0c7d9ec30bb0bfa8b5c')

build() {
  cd $srcdir/${pkgname}-${pkgver}
  sed -i 's/static const unsigned char scsi_command_size/const unsigned char scsi_command_size/' \
    sg_err.c
  ./configure --prefix='/usr' --datadir='/usr/share'
  make
}

package() {
  cd $srcdir/${pkgname}-${pkgver}
  make prefix=$pkgdir/usr install
}