diff options
author | zoe | 2015-06-24 10:24:46 +0200 |
---|---|---|
committer | zoe | 2015-06-24 10:24:46 +0200 |
commit | 0a79ff8a237edba4b2d5aae2193b5ac1d2d718ad (patch) | |
tree | 3a8408a786d8c63767b5bc48fb52cf682e25b818 /PKGBUILD | |
download | aur-0a79ff8a237edba4b2d5aae2193b5ac1d2d718ad.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2023036b2e85 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: zoe <chp321@gmail.com> +# Contributor: K. Hampf <khampf@users.sourceforge.net> +pkgname=brother-ql500-cupswrapperinch +_pkgname=ql500cupswrapperinch +pkgver=1.0.0 +pkgrel=4 +pkgdesc="LPR-to-CUPS wrapper for Brother P-Touch QL-500 labelprinter (imperial)" +url="http://solutions.brother.com/linux/en_us/" +arch=('i686' 'x86_64') +license=("GPL2") +if [[ $CARCH == 'x86_64' ]]; then + depends=('cups' 'ghostscript' 'lib32-glibc' 'brother-ql500-lpr') +else + depends=('cups' 'ghostscript' 'glibc' 'brother-ql500-lpr') +fi +makedepends=('rpmextract') +source=("http://www.brother.com/pub/bsc/linux/dlf/${_pkgname}-${pkgver}-1.redhat.i386.rpm" + "cupswrapper.install") +md5sums=('4040ef6abc7966ee2fa850b611948545' + '7e9b6dd6f9cebbbd6cfc31ad65b6db2c') +noextract=("${_pkgname}-${pkgver}-1.redhat.i386.rpm") +install='cupswrapper.install' + +build() { + cd $srcdir + rpmextract.sh "${_pkgname}-${pkgver}-1.redhat.i386.rpm" + + rm -f ${_pkgname}-${pkgver}-1.redhat.i386.rpm + + mkdir -p usr/share/ || return 1 + rm -rf usr/share/brother + mv opt/brother usr/share/brother || return 1 + rmdir opt || return 1 + + sed -i 's|/opt/brother|/usr/share/brother|g' `grep -lr '/opt/brother' ./` || return 1 +} + +package() { + mv usr $pkgdir/. || return 1 +} + |