summaryrefslogtreecommitdiff
path: root/libre/kdeutils-ark-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/kdeutils-ark-libre/PKGBUILD')
-rw-r--r--libre/kdeutils-ark-libre/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/libre/kdeutils-ark-libre/PKGBUILD b/libre/kdeutils-ark-libre/PKGBUILD
new file mode 100644
index 000000000..b7a3d7047
--- /dev/null
+++ b/libre/kdeutils-ark-libre/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 205392 2014-02-04 14:07:41Z svenstaro $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+_pkgname=kdeutils-ark
+pkgname=kdeutils-ark-libre
+pkgver=4.12.2
+pkgrel=1
+pkgdesc='Archiving Tool, with unar support'
+url='http://kde.org/applications/utilities/ark/'
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdeutils')
+depends=('kdebase-runtime' 'kdebase-lib' 'libarchive' 'qjson')
+makedepends=('cmake' 'automoc4')
+optdepends=('p7zip' 'zip' 'unzip' 'unar')
+install=${_pkgname}.install
+provides=("kdeutils-ark=$pkgver")
+replaces=('kdeutils-ark')
+conflicts=('kdeutils-ark')
+source=("http://download.kde.org/stable/${pkgver}/src/ark-${pkgver}.tar.xz"
+ 'ark-unar-06.patch')
+sha1sums=('ab99d0b78536f187566e1f0a602f41551bbf0f29'
+ 'a0a836950f185d9b2245204579f969203036fdec')
+
+build() {
+ cd "${srcdir}/ark-${pkgver}"
+
+ # This patch will allow Ark to use The Unarchiver command line utilities (unar/lsar) to operate on RAR files, particularly RARv3.
+ patch -Np1 -i "${srcdir}/ark-unar-06.patch"
+
+ cd ..
+ mkdir build
+ cd build
+ cmake ../ark-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DKDE4_BUILD_TESTS=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd $srcdir/build
+ make DESTDIR=$pkgdir install
+}