diff options
author | maz-1 | 2015-10-27 11:46:15 +0800 |
---|---|---|
committer | maz-1 | 2015-10-27 11:46:15 +0800 |
commit | bdcb453e214c47291fef3e5ef2cae87304c8191c (patch) | |
tree | b7e202956e72a8caa4224a5560734b02889506bc | |
download | aur-bdcb453e214c47291fef3e5ef2cae87304c8191c.tar.gz |
init
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | x86_64.patch | 11 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7e6c54ac40c3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = gimp-voronoi + pkgdesc = A GIMP plug-in to create Voronoi patterns + pkgver = 2.2 + pkgrel = 5 + url = http://trific.ath.cx/software/gimp-plugins/voronoi/ + arch = i686 + arch = x86_64 + license = GPL + depends = gimp>=2.0 + source = voronoi-2.2.tar.bz2::http://storage.live.com/items/EED7455B8FCA288F%211031?a.tar.bz2 + source = x86_64.patch + md5sums = e18c9d719ce84ae198c582d2dfa8229f + md5sums = 1e8f4253a27a15ce5d0d903e8c6872ec + +pkgname = gimp-voronoi + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..56150afa2c88 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: maz-1 <loveayawaka_at_gmail_dot_com> + +pkgname=gimp-voronoi +_pkgname=voronoi +pkgver=2.2 +pkgrel=5 +pkgdesc="A GIMP plug-in to create Voronoi patterns" +url="http://trific.ath.cx/software/gimp-plugins/voronoi/" +depends=('gimp>=2.0') +# Official site is no longer existent +#source=(http://trific.ath.cx/software/gimp-plugins/voronoi/voronoi-${pkgver}.tar.bz2) +source=("voronoi-${pkgver}.tar.bz2::http://storage.live.com/items/EED7455B8FCA288F%211031?a.tar.bz2" + "x86_64.patch") +arch=('i686' 'x86_64') +license=('GPL') +md5sums=('e18c9d719ce84ae198c582d2dfa8229f' '1e8f4253a27a15ce5d0d903e8c6872ec') + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + +# Patch and build + [ "${CARCH}" = "x86_64" ] && (patch -Np0 -i ../x86_64.patch || return 1) + make || return 1 +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + + /usr/bin/install -D -m 755 voronoi ${pkgdir}/usr/lib/gimp/2.0/plug-ins/voronoi +} diff --git a/x86_64.patch b/x86_64.patch new file mode 100644 index 000000000000..16ca1727fc7b --- /dev/null +++ b/x86_64.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2008-03-08 20:12:17.000000000 -0800 ++++ Makefile 2008-03-08 20:23:54.000000000 -0800 +@@ -8,7 +8,7 @@ + + GIMP_LDFLAGS = `$(GIMPTOOL) --libs` + GIMP_CFLAGS = `$(GIMPTOOL) --cflags` +-EXTRA_CFLAGS = -DLOCALEDIR=\"`$(GIMPTOOL) --prefix`/share/locale\" -DVERSION=\"$(VERSION)\" -Wall -O2 -march=`uname -m` ++EXTRA_CFLAGS = -DLOCALEDIR=\"`$(GIMPTOOL) --prefix`/share/locale\" -DVERSION=\"$(VERSION)\" -Wall -O2 + + CFLAGS = $(GIMP_CFLAGS) $(EXTRA_CFLAGS) + LDFLAGS = $(GIMP_LDFLAGS) -lm |