summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12021-03-25 17:34:15 +0800
committerChocobo12021-03-25 17:38:53 +0800
commitf8664a2a88b7be88a02cde2d5c2701e4a023130f (patch)
tree8f368b3efe919094cac11526590ae442f709969b
downloadaur-f8664a2a88b7be88a02cde2d5c2701e4a023130f.tar.gz
newpkg: giflib-git 5.2.1.r2.gadf5a1a-1
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD45
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cfc923b53b4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = giflib-git
+ pkgdesc = A library and utilities for processing GIFs
+ pkgver = 5.2.1.r2.gadf5a1a
+ pkgrel = 1
+ url = http://giflib.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = docbook-xml
+ makedepends = docbook-xsl
+ makedepends = xmlto
+ depends = glibc
+ provides = giflib
+ provides = libgif.so
+ conflicts = giflib
+ options = staticlibs
+ source = git+https://git.code.sf.net/p/giflib/code
+ sha256sums = SKIP
+
+pkgname = giflib-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..95a6a9769f6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=giflib-git
+pkgver=5.2.1.r2.gadf5a1a
+pkgrel=1
+pkgdesc="A library and utilities for processing GIFs"
+arch=('i686' 'x86_64')
+url="http://giflib.sourceforge.net/"
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'docbook-xml' 'docbook-xsl' 'xmlto')
+provides=('giflib' 'libgif.so')
+conflicts=('giflib')
+options=('staticlibs')
+source=("git+https://git.code.sf.net/p/giflib/code")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "code"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "code"
+
+ make
+}
+
+check() {
+ cd "code"
+
+ make check
+}
+
+package() {
+ cd "code"
+
+ make \
+ PREFIX="/usr" \
+ DESTDIR="$pkgdir" \
+ install
+ install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/giflib"
+}