diff options
author | Pablo Lezaeta Reyes | 2015-05-26 00:33:52 -0300 |
---|---|---|
committer | Pablo Lezaeta Reyes | 2015-05-26 00:33:52 -0300 |
commit | c8e0a4a9ee24ad8bdd5f4cfc679954badd00276d (patch) | |
tree | 6ee8edbe4d0e55bffac6448c205363a4efd0c3fd | |
download | aur-c8e0a4a9ee24ad8bdd5f4cfc679954badd00276d.tar.gz |
Initial Commit
Signed-off-by: Pablo Lezaeta Reyes <prflr88@gmail.com>
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 10 | ||||
-rw-r--r-- | 001-missing-header.patch | 11 | ||||
-rw-r--r-- | PKGBUILD | 30 |
4 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0c01218ebb9e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = apngopt + pkgdesc = Optimizes existing APNG animation + pkgver = 1.3 + pkgrel = 1 + url = http://sourceforge.net/projects/apng/files/APNG_Optimizer/ + arch = i686 + arch = x86_64 + license = zlib + source = http://downloads.sourceforge.net/project/apng/APNG_Optimizer/1.3/apngopt-1.3-src.zip + source = 001-missing-header.patch + md5sums = e2d2411ea9a704c5522dbcad482816f1 + md5sums = cde7d050ce06a32956256a2e7ab992be + +pkgname = apngopt + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8370b70b3648 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +src +srcdir +pkg +pkgdir +*.xz +*.gz +*.bz2 +*.tar.* +*.zip +*~ diff --git a/001-missing-header.patch b/001-missing-header.patch new file mode 100644 index 000000000000..3e36f82a0571 --- /dev/null +++ b/001-missing-header.patch @@ -0,0 +1,11 @@ +diff -Naur apngopt-a/apngopt.cpp apngopt-b/apngopt.cpp +--- apngopt-a/apngopt.cpp 2014-10-29 21:00:04.000000000 -0300 ++++ apngopt-b/apngopt.cpp 2015-03-28 02:40:38.343773305 -0300 +@@ -29,6 +29,7 @@ + */
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+ #include "zlib.h"
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0ff155ad9097 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: kusakata <shohei atmark kusakata period com> +# Contributor: Pablo Lezaeta <prflr88 (arro'a) gmail.com> + +pkgname=apngopt +pkgver=1.3 +pkgrel=1 +pkgdesc="Optimizes existing APNG animation" +arch=("i686" "x86_64") +url="http://sourceforge.net/projects/apng/files/APNG_Optimizer/" +license=("zlib") +source=("http://downloads.sourceforge.net/project/apng/APNG_Optimizer/${pkgver}/apngopt-${pkgver}-src.zip" + "001-missing-header.patch") + +prepare(){ + patch -p1 < "001-missing-header.patch" +} + +build() { + cd "${srcdir}" + make DESTDIR="${pkgdir}" prefix=/usr sbindir=/usr/bin bindir=/usr/bin libdir=/usr/lib +} + +package() { + cd "${srcdir}" + #make DESTDIR="${pkgdir}" prefix=/usr sbindir=/usr/bin bindir=/usr/bin libdir=/usr/lib install + install -Dm755 "${srcdir}/apngopt" "${pkgdir}/usr/bin/apngopt" +} + +md5sums=('e2d2411ea9a704c5522dbcad482816f1' + 'cde7d050ce06a32956256a2e7ab992be') |