diff options
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | swfmill-0.3.3.patch | 12 |
4 files changed, 45 insertions, 13 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Tue Oct 25 14:35:09 UTC 2016 +# Tue Oct 25 14:36:06 UTC 2016 pkgbase = swfmill pkgdesc = xml2swf and swf2xml processor with import functionalities - pkgver = 0.3.2 + pkgver = 0.3.3 pkgrel = 1 url = http://swfmill.org arch = i686 @@ -11,8 +11,10 @@ pkgbase = swfmill depends = libxslt depends = freetype2 depends = libpng - source = http://swfmill.org/releases/swfmill-0.3.2.tar.gz - md5sums = c607f8aba506ec32cc4423446fe6644e + source = http://swfmill.org/releases/swfmill-0.3.3.tar.gz + source = swfmill-0.3.3.patch + md5sums = e0fc3c4068ffe135f201e6ee864dce62 + md5sums = 34b8022050b2317628a6ade9c21273d7 pkgname = swfmill diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3b8ec2afcbca --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg/ +/src/ +*.tar.gz +*.pkg.tar.xz @@ -1,19 +1,33 @@ +# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net> +# Contributor: anonymous <https://gist.github.com/anonymous/2924244> pkgname=swfmill -pkgver=0.3.2 +pkgver=0.3.3 pkgrel=1 pkgdesc="xml2swf and swf2xml processor with import functionalities" arch=('i686' 'x86_64') url="http://swfmill.org" license=('GPL') depends=('libxslt' 'freetype2' 'libpng') -source=("http://swfmill.org/releases/$pkgname-$pkgver.tar.gz") -md5sums=('c607f8aba506ec32cc4423446fe6644e') +source=(http://swfmill.org/releases/$pkgname-$pkgver.tar.gz + $pkgname-$pkgver.patch) +md5sums=('e0fc3c4068ffe135f201e6ee864dce62' + '34b8022050b2317628a6ade9c21273d7') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +} build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" - # Configure, make and install - ./configure --prefix=/usr - make || return 1 - make DESTDIR=$pkgdir install || return 1 -}
\ No newline at end of file + make DESTDIR="$pkgdir/" install +} diff --git a/swfmill-0.3.3.patch b/swfmill-0.3.3.patch new file mode 100644 index 000000000000..c66e8c3af917 --- /dev/null +++ b/swfmill-0.3.3.patch @@ -0,0 +1,12 @@ +diff -ru swfmill-0.3.3_/src/swft/swft_import_jpeg.cpp swfmill-0.3.3/src/swft/swft_import_jpeg.cpp +--- swfmill-0.3.3_/src/swft/swft_import_jpeg.cpp 2016-10-25 14:28:36.560342480 +0000 ++++ swfmill-0.3.3/src/swft/swft_import_jpeg.cpp 2016-10-25 14:27:42.640012522 +0000 +@@ -10,7 +10,7 @@ + #include <zlib.h>
+
+ #define TMP_STRLEN 0xff
+-const char jpeg_header[] = { 0xff, 0xd9, 0xff, 0xd8, 0 };
++const char jpeg_header[] = { (char)0xff, (char)0xd9, (char)0xff, (char)0xd8, 0 };
+
+ // defined in swft_import_png
+ bool compress( unsigned char *inputBuffer, int inLength, unsigned char *outputBuffer, int *outLength );
|