summaryrefslogtreecommitdiff
path: root/community/unshield
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/unshield
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/unshield')
-rw-r--r--community/unshield/PKGBUILD27
-rw-r--r--community/unshield/libunshield.c.patch12
2 files changed, 39 insertions, 0 deletions
diff --git a/community/unshield/PKGBUILD b/community/unshield/PKGBUILD
new file mode 100644
index 000000000..99cb13787
--- /dev/null
+++ b/community/unshield/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 23623 2010-08-13 18:58:07Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=unshield
+pkgver=0.6
+pkgrel=2
+pkgdesc="Extracts CAB files from InstallShield installers"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/synce/files/"
+license=('custom')
+depends=('zlib')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/synce/${pkgname}-${pkgver}.tar.gz
+ libunshield.c.patch)
+md5sums=('31a829192a255160d1f71cda4c865c9c'
+ 'aa731ca6fd7c7dfb03f8b07e232b37d3')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ # See http://www.mail-archive.com/synce-devel@lists.sourceforge.net/msg01796.html
+ patch -Np0 -i "${srcdir}/libunshield.c.patch" || return 1
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=${pkgdir} install
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/unshield/LICENSE
+}
+
diff --git a/community/unshield/libunshield.c.patch b/community/unshield/libunshield.c.patch
new file mode 100644
index 000000000..e78395e20
--- /dev/null
+++ b/community/unshield/libunshield.c.patch
@@ -0,0 +1,12 @@
+--- lib/libunshield.c 2004-08-24 08:10:27.000000000 +0200
++++ lib/libunshield.c 2010-08-13 20:39:58.000000000 +0200
+@@ -271,6 +271,9 @@
+
+ header->major_version = (header->common.version >> 12) & 0xf;
+
++ if (header->common.version == 0x020004b0)
++ header->major_version = 9;
++
+ #if 0
+ if (header->major_version < 5)
+ header->major_version = 5;