diff options
author | Narrat | 2016-11-27 02:13:44 +0100 |
---|---|---|
committer | Narrat | 2016-11-27 02:13:44 +0100 |
commit | cd735ddca073f7cd26ea6f5845300f5b84c42508 (patch) | |
tree | 4afceddc69bb1465cba7b5b8343725f566d02032 /PKGBUILD | |
parent | 77ab7c1fc7f5568177c5aad95aba421bb8393248 (diff) | |
download | aur-z600.tar.gz |
z600: Let bsdtar handle the extracting
bsdtar is capable of extracting .rpm archives.
So drop the makedeps.
Thanks to Scimmia for letting me know.
Additionally moved everything from build into prepare
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -6,28 +6,25 @@ pkgname=z600 pkgver=1.0 -pkgrel=3 +pkgrel=4 pkgdesc="Lexmark Z600 Printer Driver" arch=('i686' 'x86_64') url="http://www.lexmark.com/" license=('custom') -makedepends=('rpmextract' 'gzip') depends_i686=('cups' 'libstdc++5') depends_x86_64=('cups' 'lib32-libcups' 'lib32-libstdc++5') source=("http://downloads.lexmark.com/downloads/cpd/CJLZ600LE-CUPS-1.0-1.TAR.gz") md5sums=('c0e35c9819b25e587e75a5a743c49f18') -build() { - cd $srcdir - tar xf CJLZ600LE-CUPS-1.0-1.TAR.gz +prepare() { tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz - tar xf install.tar.gz - rpmextract.sh z600llpddk-2.0-1.i386.rpm - rpmextract.sh z600cups-1.0-1.i386.rpm + bsdtar -xf install.tar.gz + bsdtar -xf z600llpddk-2.0-1.i386.rpm + bsdtar -xf z600cups-1.0-1.i386.rpm } package() { cd $srcdir/ - mv -f usr $pkgdir + cp -dpr --no-preserve=ownership usr/ $pkgdir/ } |