summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Larson2017-05-10 22:00:19 +0200
committerGustav Larson2017-05-10 22:00:19 +0200
commitebe62740a1406dbc28c4b06f8716ff65c6efd5d1 (patch)
tree92e50d7d52f416b8d037d117f90fea0abc4d605d
downloadaur-ebe62740a1406dbc28c4b06f8716ff65c6efd5d1.tar.gz
Initial commit
Adding epeg 248ae9f
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD40
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fc984dcf232
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = epeg-git
+ pkgdesc = An IMMENSELY FAST JPEG thumbnailer library API.
+ pkgver = r38.248ae9f
+ pkgrel = 1
+ url = https://github.com/mattes/epeg
+ arch = any
+ license = unknown
+ makedepends = git
+ depends = libjpeg
+ depends = libexif
+ provides = epeg
+ conflicts = epeg
+
+pkgname = epeg-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e7ac8cc21fe
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg
+src
+epeg-git-*.pkg.tar.xz
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
+}