summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD26
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7eff7085a69
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ciso
+ pkgdesc = PSP Iso Compressor
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = http://ciso.tenshu.fr
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = zlib
+ source = http://downloads.sourceforge.net/sourceforge/ciso/ciso-1.0.0.tar.gz
+ md5sums = 6091333f30fd61852d7d629b937aee34
+
+pkgname = ciso
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..24df819a887
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Contributor: codestation <codestation404 at gmail dot com>
+pkgname=ciso
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="PSP Iso Compressor"
+arch=(i686 x86_64)
+url="http://ciso.tenshu.fr"
+license=('GPL')
+depends=('zlib')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('6091333f30fd61852d7d629b937aee34')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # Avoid warnings about memset/memcpy
+ sed -i '/#include <stdlib.h>/ a\#include <string.h>' ciso.c
+ # Replace data type 'long' with 'int' for mantain structure sizes in 32/64 bits
+ sed -i '/long long/!s/long/int/' ciso.c ciso.h
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p "${pkgdir}/usr/bin"
+ make DESTDIR="${pkgdir}" install
+}