summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGustav Larson2017-05-10 22:00:19 +0200
committerGustav Larson2017-05-10 22:00:19 +0200
commitebe62740a1406dbc28c4b06f8716ff65c6efd5d1 (patch)
tree92e50d7d52f416b8d037d117f90fea0abc4d605d /PKGBUILD
downloadaur-ebe62740a1406dbc28c4b06f8716ff65c6efd5d1.tar.gz
Initial commit
Adding epeg 248ae9f
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5c0ac953377
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Gustav Larson <gustav dot larson at gmail dot com>
+pkgname=epeg-git
+pkgver=r38.248ae9f
+pkgrel=1
+pkgdesc="An IMMENSELY FAST JPEG thumbnailer library API."
+arch=('any')
+url="https://github.com/mattes/epeg"
+license=('unknown')
+groups=()
+depends=('libjpeg' 'libexif')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+noextract=()
+_gitrepo="$url.git"
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ git clone --single $_gitrepo "$srcdir/${pkgname%-git}"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+}