updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / p7zip-light / PKGBUILD
blobede5f77c94c8490b35024d301ffaf4d7409d8dcf
1 pkgname=p7zip-light
2 _pkgname=${pkgname%-light}
3 pkgver=9.20.1
4 pkgrel=2
5 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar and GUI'
6 url='http://p7zip.sourceforge.net/'
7 license=('GPL')
8 arch=('i686' 'x86_64')
9 depends=('gcc-libs' 'bash')
10 optdepends=()
11 makedepends=('yasm' 'nasm')
12 source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}_${pkgver}_src_all.tar.bz2"
13         'p7zip-libre.patch')
14 provides=("p7zip=${pkgver}")
15 conflicts=('p7zip')
16 replaces=('p7zip')
17 sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7'
18           '8fc0e6e80aeec371a8c80e7a6082594ac6d08aed')
20 build() {
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}"
32 package() {
33         cd "${srcdir}/${_pkgname}_${pkgver}"
35         make install \
36                 DEST_DIR="${pkgdir}" \
37                 DEST_HOME="/usr" \
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"