diff options
author | maz-1 | 2015-10-29 20:51:40 +0800 |
---|---|---|
committer | maz-1 | 2015-10-29 20:51:40 +0800 |
commit | 3f60169b2564ff144c5abbbba308803ff676e2f1 (patch) | |
tree | 6884d92b359d38164506a03dd9c5ed7d61114754 | |
download | aur-3f60169b2564ff144c5abbbba308803ff676e2f1.tar.gz |
init
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cc306ff1aa4d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = unshield-git + pkgdesc = Extracts CAB files from InstallShield installers + pkgver = r155.24bdf98 + pkgrel = 1 + url = https://github.com/twogood/unshield + arch = i686 + arch = x86_64 + license = custom + makedepends = cmake + makedepends = git + depends = zlib + depends = openssl + source = git+https://github.com/twogood/unshield + md5sums = SKIP + +pkgname = unshield-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8850c52257d0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: maz-1 < ohmygod19993@gmail.com > + +_pkgname=unshield +pkgname=${_pkgname}-git +pkgver=r155.24bdf98 +pkgrel=1 +pkgdesc="Extracts CAB files from InstallShield installers" +arch=('i686' 'x86_64') +url="https://github.com/twogood/unshield" +license=('custom') +depends=('zlib' 'openssl') +makedepends=('cmake' 'git') +source=("git+https://github.com/twogood/unshield") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${srcdir}/${_pkgname}/src + #temporary fix + sed -i 's:if (!isprint(\*p))$:if (0 \&\& !isprint(\*p)):g' unshield.c +} + +build() { + cd ${srcdir}/${_pkgname} + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + . + make +} + +package() { + cd ${srcdir}/${_pkgname} + make DESTDIR=${pkgdir} install + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/unshield/LICENSE +} |