summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12021-03-25 17:34:15 +0800
committerChocobo12021-03-25 17:38:53 +0800
commitf8664a2a88b7be88a02cde2d5c2701e4a023130f (patch)
tree8f368b3efe919094cac11526590ae442f709969b /PKGBUILD
downloadaur-giflib-git.tar.gz
newpkg: giflib-git 5.2.1.r2.gadf5a1a-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
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"
+}