summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/ark/PKGBUILD50
-rw-r--r--libre/ark/ark-unar-06.patch (renamed from libre/kdeutils-ark/ark-unar-06.patch)0
-rw-r--r--libre/ark/ark.install (renamed from libre/kdeutils-ark/kdeutils-ark.install)5
-rw-r--r--libre/kdeutils-ark/PKGBUILD45
4 files changed, 53 insertions, 47 deletions
diff --git a/libre/ark/PKGBUILD b/libre/ark/PKGBUILD
new file mode 100644
index 000000000..652081ec5
--- /dev/null
+++ b/libre/ark/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
+# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
+# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=ark
+pkgver=15.08.0
+pkgrel=1.parabola1
+#pkgdesc='Archiving Tool, with unar support'
+pkgdesc='Archiving Tool, without unrar recommendation'
+arch=(i686 x86_64)
+url='http://kde.org/applications/utilities/ark/'
+license=(GPL)
+depends=(kpty khtml libarchive hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools python)
+#optdepends=(p7zip zip unzip unar)
+optdepends=(p7zip zip unzip)
+conflicts=(kdeutils-ark)
+replaces=(kdeutils-ark)
+groups=(kde-applications kdeutils)
+install=$pkgname.install
+source=("http://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+# 'ark-unar-06.patch')
+md5sums=('6ab73a072f05b4ccccbfe64521094f7f')
+# 'f38dc71e385e9242899cbe032a983d81')
+
+prepare() {
+ mkdir -p build
+# cd $pkgname-$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 ../ark-unar-07.patch
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLIB_INSTALL_DIR=lib \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
+
diff --git a/libre/kdeutils-ark/ark-unar-06.patch b/libre/ark/ark-unar-06.patch
index ab2ef274f..ab2ef274f 100644
--- a/libre/kdeutils-ark/ark-unar-06.patch
+++ b/libre/ark/ark-unar-06.patch
diff --git a/libre/kdeutils-ark/kdeutils-ark.install b/libre/ark/ark.install
index 8a26818d8..74ff488bc 100644
--- a/libre/kdeutils-ark/kdeutils-ark.install
+++ b/libre/ark/ark.install
@@ -1,12 +1,13 @@
post_install() {
- update-desktop-database -q
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
}
-post_update() {
+post_upgrade() {
post_install
}
post_remove() {
post_install
}
+
diff --git a/libre/kdeutils-ark/PKGBUILD b/libre/kdeutils-ark/PKGBUILD
deleted file mode 100644
index 99d261862..000000000
--- a/libre/kdeutils-ark/PKGBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# $Id: PKGBUILD 241398 2015-06-29 17:50:28Z arojas $
-# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
-# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-pkgname=kdeutils-ark
-pkgver=15.04.3
-pkgrel=1.parabola1
-pkgdesc='Archiving Tool, with unar support'
-url='http://kde.org/applications/utilities/ark/'
-arch=('i686' 'x86_64')
-license=('GPL' 'LGPL' 'FDL')
-groups=('kde-applications' 'kdeutils')
-replaces=('kdeutils-ark-libre')
-conflicts=('kdeutils-ark-libre')
-depends=('kdebase-runtime' 'kdebase-lib' 'libarchive' 'qjson')
-makedepends=('cmake' 'automoc4')
-optdepends=('p7zip' 'zip' 'unzip' 'unar')
-install=${pkgname}.install
-source=("http://download.kde.org/stable/applications/${pkgver}/src/ark-${pkgver}.tar.xz"
- 'ark-unar-06.patch')
-sha1sums=('891187b1c49258ab461f1dcbfae82f0640a96f54'
- 'a0a836950f185d9b2245204579f969203036fdec')
-
-prepare() {
- 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"
-}
-
-build() {
- cd "${srcdir}"
- 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
-}