summaryrefslogtreecommitdiffstats
path: root/abs/extra/unrar/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-05 14:43:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-05 14:43:35 (GMT)
commit13ef9b9b15a5556c58f61b69c9133740790c4c4a (patch)
tree969b4e5372f83d75f8d4d75c9f6d35f7f9e8aae4 /abs/extra/unrar/PKGBUILD
parent03a4f6f5c9a43baf1dd7d5e9b44e5113b90ba35b (diff)
downloadlinhes_pkgbuild-13ef9b9b15a5556c58f61b69c9133740790c4c4a.zip
linhes_pkgbuild-13ef9b9b15a5556c58f61b69c9133740790c4c4a.tar.gz
linhes_pkgbuild-13ef9b9b15a5556c58f61b69c9133740790c4c4a.tar.bz2
unrar 4.2.4
Diffstat (limited to 'abs/extra/unrar/PKGBUILD')
-rw-r--r--abs/extra/unrar/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/abs/extra/unrar/PKGBUILD b/abs/extra/unrar/PKGBUILD
new file mode 100644
index 0000000..f4ef1a1
--- /dev/null
+++ b/abs/extra/unrar/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 161802 2012-06-14 17:00:58Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: dorphell <dorphell@gmx.net>
+
+pkgbase=unrar
+pkgname=('unrar' 'libunrar')
+pkgver=4.2.4
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://www.rarlab.com/rar_add.htm"
+license=('custom')
+makedepends=('gcc-libs')
+source=("http://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz"
+ 'unrar-4.2.1-soname.patch')
+md5sums=('8ea9d1b4139474b282d76e627a2de3e4'
+ 'b9ec767da9a36f5ac38034c974e77758')
+
+build() {
+ cd "${srcdir}/${pkgbase}"
+
+ patch -Np0 -i "${srcdir}/unrar-4.2.1-soname.patch"
+
+ cp -a ${srcdir}/unrar ${srcdir}/libunrar
+ make -C "${srcdir}"/libunrar -f makefile.unix lib libversion=${pkgver} CXXFLAGS="-fPIC ${CXXFLAGS}"
+ make -f makefile.unix CXXFLAGS="-fPIC ${CXXFLAGS}" STRIP="true"
+}
+
+package_unrar() {
+ pkgdesc="The RAR uncompression program"
+ depends=('gcc-libs')
+ cd "${srcdir}/${pkgbase}"
+
+ install -Dm755 unrar "${pkgdir}/usr/bin/unrar"
+ # install license
+ install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_libunrar() {
+ pkgdesc="Library and header file for applications that use libunrar"
+ depends=('gcc-libs')
+ cd "${srcdir}/libunrar"
+
+ install -Dm755 libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so.${pkgver}"
+ install -Dm644 dll.hpp "${pkgdir}/usr/include/unrar/dll.hpp"
+ ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so.4"
+ ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so"
+ # install license
+ install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}