# $Id: PKGBUILD 137902 2011-09-12 10:18:06Z allan $ # Maintainer: # Contributer: Judd Vinet pkgname=mtx pkgver=1.3.12 pkgrel=2.1 pkgdesc="Send robot commands to tape changer" arch=('i686' 'x86_64' 'mips64el') 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 }