2 _pkgname=${pkgname%-light}
5 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar and GUI'
6 url='http://p7zip.sourceforge.net/'
9 depends=('gcc-libs' 'bash')
11 makedepends=('yasm' 'nasm')
12 source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}_${pkgver}_src_all.tar.bz2"
14 provides=("p7zip=${pkgver}")
17 sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7'
18 '8fc0e6e80aeec371a8c80e7a6082594ac6d08aed')
21 cd "${srcdir}/${_pkgname}_${pkgver}"
23 patch -p1 -i ${srcdir}/p7zip-libre.patch
25 [[ $CARCH = x86_64 ]] \
26 && cp makefile.linux_amd64_asm makefile.machine \
27 || cp makefile.linux_x86_asm_gcc_4.X makefile.machine
29 make all3 OPTFLAGS="${CXXFLAGS}"
33 cd "${srcdir}/${_pkgname}_${pkgver}"
36 DEST_DIR="${pkgdir}" \
38 DEST_MAN="/usr/share/man"
40 # Integration with stuff...
41 ln -s 7zCon.sfx "${pkgdir}"/usr/lib/p7zip/7z.sfx
43 chmod -R u+w "${pkgdir}/usr"