From 2995c0dd09f2459249312fd30c0d1313b1e8fd78 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 18 Nov 2011 01:10:56 -0500 Subject: revise the unarchiver PKGBUILD (from [libre]) to create packages for all the software contained --- ~lukeshu/unarchiver/PKGBUILD | 85 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 ~lukeshu/unarchiver/PKGBUILD (limited to '~lukeshu/unarchiver') 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 +# Maintainer: Luke Shumaker + +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') -- cgit v1.2.3 From d3666618a345910310521f21b0302c8931c7cb02 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 18 Nov 2011 18:12:39 -0500 Subject: clean up the PKGBUILD for unarchiver (make a few pkg-altering changes) --- ~lukeshu/unarchiver/PKGBUILD | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) (limited to '~lukeshu/unarchiver') diff --git a/~lukeshu/unarchiver/PKGBUILD b/~lukeshu/unarchiver/PKGBUILD index e1beb22a8..ab58c2f2d 100644 --- a/~lukeshu/unarchiver/PKGBUILD +++ b/~lukeshu/unarchiver/PKGBUILD @@ -15,7 +15,7 @@ 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) +source=("http://theunarchiver.googlecode.com/files/TheUnarchiver${pkgver}_src.zip") build() { cd "$srcdir/The Unarchiver/XADMaster" @@ -39,47 +39,54 @@ package_unarchiver() { 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/" + install -d "$pkgdir/usr/bin" + install -m755 unar lsar "$pkgdir/usr/bin" } package_libuniversaldetector() { + pkgver=0.4 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/" + install -d "$pkgdir/usr/lib" + install libUniversalDetector.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include" + install UniversalDetector.h "$pkgdir/usr/include" } package_libxadmaster() { + pkgver=0.4 pkgdesc="An Objective-C library built around libxad adding support for other formats" depends+=('libuniversaldetector') + header_files= \ + CommandLineCommon.h \ + NSStringPrinting.h \ + XADArchive.h \ + XADRegex.h \ + XADUnarchiver.h + 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/" + install -d "$pkgdir/usr/lib" + install libXADMaster.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include/XADMaster" + install $header_files "$pkgdir/usr/include/XADMaster" } package_libxadmaster-libxad() { - pkgver=13.0.unar # forked from 13.0.2005.06.23 #commit 1.24 + pkgver=0.4 # 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/" + 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') -- cgit v1.2.3 From 3aabd6016344dab798425905a50bc4acc392f8ea Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 19 Nov 2011 01:26:21 -0500 Subject: fix unar and unarchiver (I need to be more diligent) --- ~lukeshu/unar/PKGBUILD | 17 +++++++++++------ ~lukeshu/unarchiver/PKGBUILD | 11 ++++++----- 2 files changed, 17 insertions(+), 11 deletions(-) (limited to '~lukeshu/unarchiver') diff --git a/~lukeshu/unar/PKGBUILD b/~lukeshu/unar/PKGBUILD index f07494266..b1931c498 100644 --- a/~lukeshu/unar/PKGBUILD +++ b/~lukeshu/unar/PKGBUILD @@ -19,6 +19,10 @@ source=("https://theunarchiver.googlecode.com/files/unar${pkgver}_src.zip") build() { cd "$srcdir/XADMaster" + # remove some OS X object files that were accidentally included in the dist + # (we've all done it) + find "$srcdir" -name '*.o' -delete + # build everything . /usr/share/GNUstep/Makefiles/GNUstep.sh make -f Makefile.linux @@ -60,13 +64,14 @@ package_libxadmaster() { pkgdesc="An Objective-C library built around libxad adding support for other formats" depends+=('libuniversaldetector') - header_files= \ - CommandLineCommon.h \ - NSStringPrinting.h \ - XADArchive.h \ - XADRegex.h \ - XADSimpleUnarchvier.h \ + header_files=' + CommandLineCommon.h + NSStringPrinting.h + XADArchive.h + XADRegex.h + XADSimpleUnarchiver.h XADUnarchiver.h + ' cd "$srcdir/XADMaster" install -d "$pkgdir/usr/lib" diff --git a/~lukeshu/unarchiver/PKGBUILD b/~lukeshu/unarchiver/PKGBUILD index ab58c2f2d..e1c2f4da9 100644 --- a/~lukeshu/unarchiver/PKGBUILD +++ b/~lukeshu/unarchiver/PKGBUILD @@ -61,12 +61,13 @@ package_libxadmaster() { pkgdesc="An Objective-C library built around libxad adding support for other formats" depends+=('libuniversaldetector') - header_files= \ - CommandLineCommon.h \ - NSStringPrinting.h \ - XADArchive.h \ - XADRegex.h \ + header_files=' + CommandLineCommon.h + NSStringPrinting.h + XADArchive.h + XADRegex.h XADUnarchiver.h + ' cd "$srcdir/The Unarchiver/XADMaster" install -d "$pkgdir/usr/lib" -- cgit v1.2.3 From 6822840a062952490ca867819b7428685cb79985 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 20 Nov 2011 23:10:25 -0500 Subject: add quotes around 'xadmaster.library' in the description for libxadmaster-libxad --- ~lukeshu/unar/PKGBUILD | 2 +- ~lukeshu/unarchiver/PKGBUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '~lukeshu/unarchiver') diff --git a/~lukeshu/unar/PKGBUILD b/~lukeshu/unar/PKGBUILD index b1931c498..4bb523a89 100644 --- a/~lukeshu/unar/PKGBUILD +++ b/~lukeshu/unar/PKGBUILD @@ -81,7 +81,7 @@ package_libxadmaster() { } package_libxadmaster-libxad() { - pkgdesc="A fork of libxad, the port of the Amiga xadmaster.library to *NIX" + pkgdesc="A fork of libxad, the port of the Amiga 'xadmaster.library' to *NIX" depends=('glibc') provides=('libxad') conflicts=('libxad') diff --git a/~lukeshu/unarchiver/PKGBUILD b/~lukeshu/unarchiver/PKGBUILD index e1c2f4da9..0df133a6c 100644 --- a/~lukeshu/unarchiver/PKGBUILD +++ b/~lukeshu/unarchiver/PKGBUILD @@ -78,7 +78,7 @@ package_libxadmaster() { package_libxadmaster-libxad() { pkgver=0.4 # forked from 13.0.2005.06.23 (commit 1.24) - pkgdesc="A fork of libxad, the port of the Amiga xadmaster.library to *NIX" + pkgdesc="A fork of libxad, the port of the Amiga 'xadmaster.library' to *NIX" depends=('glibc') provides=('libxad') conflicts=('libxad') -- cgit v1.2.3