summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-18 01:10:56 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-18 01:10:56 -0500
commit2995c0dd09f2459249312fd30c0d1313b1e8fd78 (patch)
tree6a39b99fe4e4d2a2b3a073a7a67fbf8fa5ed79c7
parent649b65c27260fb3259ffc72e6b373ecc00b28f8d (diff)
downloadabslibre-2995c0dd09f2459249312fd30c0d1313b1e8fd78.tar.gz
abslibre-2995c0dd09f2459249312fd30c0d1313b1e8fd78.tar.bz2
abslibre-2995c0dd09f2459249312fd30c0d1313b1e8fd78.zip
revise the unarchiver PKGBUILD (from [libre]) to create packages for all the software contained
-rw-r--r--.gitignore1
-rw-r--r--~lukeshu/unarchiver/PKGBUILD85
2 files changed, 86 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index b2ad4f2d0..de7bdd9b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
*.tar.xz
*.tar.bz2
*.tgz
+*.zip
*~
#*#
diff --git a/~lukeshu/unarchiver/PKGBUILD b/~lukeshu/unarchiver/PKGBUILD
new file mode 100644
index 000000000..e1beb22a8
--- /dev/null
+++ b/~lukeshu/unarchiver/PKGBUILD
@@ -0,0 +1,85 @@
+# Contributor: Cedric Girard <girard.cedric@gmail.com>
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=(
+ 'unarchiver'
+ 'unar'
+ 'libuniversaldetector'
+ 'libxadmaster'
+ 'libxadmaster-libxad')
+pkgver=2.7.1
+pkgrel=4
+arch=('x86_64' 'i686')
+url="http://wakaba.c3.cx/s/apps/unarchiver.html"
+license=('LGPL2.1')
+depends=('gnustep-base-libre>=1.23.0' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib')
+conflicts=('gnustep-base>=1.24')
+makedepends=('gcc-objc')
+source=(http://theunarchiver.googlecode.com/files/TheUnarchiver"$pkgver"_src.zip)
+
+build() {
+ cd "$srcdir/The Unarchiver/XADMaster"
+
+ # build everything
+ . /usr/share/GNUstep/Makefiles/GNUstep.sh
+ make -f Makefile.linux
+
+ # make libxad into a lib file
+ cd libxad
+ rm -f libxad.a
+ ar rcs libxad.a all.o clients.o unix/emulation.o unix/init.o
+}
+
+package_unarchiver() {
+ pkgdesc="An Objective-C application for uncompressing archive files"
+ arch=('any')
+ depends=(${depends[@]} 'unar>=0.4')
+}
+
+package_unar() {
+ pkgver=0.4
+ pkgdesc="The unar/lsar command line wrappers around libXADMaster"
+ provides=('unar')
+ conflicts+=('unar')
+
+ cd "$srcdir/The Unarchiver/XADMaster"
+ install -d "$pkgdir/usr/bin/"
+ install -m755 unar lsar "$pkgdir/usr/bin/"
+}
+
+package_libuniversaldetector() {
+ pkgdesc="Some fancy-schmancy Objective-C library that detects things?"
+
+ cd "$srcdir/The Unarchiver/UniversalDetector"
+ install -d "$pkgdir/usr/lib/"
+ install libUniversalDetector.a "$pkgdir/usr/lib/"
+ install -d "$pkgdir/usr/include/"
+ install UniversalDetector.h "$pkgdir/usr/include/"
+}
+
+package_libxadmaster() {
+ pkgdesc="An Objective-C library built around libxad adding support for other formats"
+ depends+=('libuniversaldetector')
+
+ cd "$srcdir/The Unarchiver/XADMaster"
+ install -d "$pkgdir/usr/lib/"
+ install libXADMaster.a "$pkgdir/usr/lib/"
+ install -d "$pkgdir/usr/include/XADMaster/"
+ install XADArchive.h XADRegex.h XADUnarchiver.h "$pkgdir/usr/include/XADMaster/"
+}
+
+package_libxadmaster-libxad() {
+ pkgver=13.0.unar # forked from 13.0.2005.06.23 #commit 1.24
+ pkgdesc="A fork of libxad, the port of the Amiga xadmaster.library to *NIX"
+ depends=('glibc')
+ provides=('libxad')
+ conflicts=('libxad')
+
+ cd "$srcdir/The Unarchiver/XADMaster/libxad"
+ install -d "$pkgdir/usr/lib/"
+ install libxad.a "$pkgdir/usr/lib/"
+ install -d "$pkgdir/usr/include/libxad/"
+ install include/* "$pkgdir/usr/include/libxad/"
+}
+
+md5sums=('498ea1c984d5783322e070a71922b422')