summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kirchner2015-10-19 20:19:08 +0200
committerDaniel Kirchner2015-10-19 20:19:08 +0200
commit549cadd2f60a376182dff47066ff20c4f21fd491 (patch)
treeacf1d76a8f4fdd8cbcecef1ef39a67b0baeefdca
downloadaur-549cadd2f60a376182dff47066ff20c4f21fd491.tar.gz
Initial commit.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..47af6e6b4a8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ktxutils-git
+ pkgdesc = Utilities for the KTX texture format
+ pkgver = r14.78391f6
+ pkgrel = 1
+ url = http://github.com/ekpyron/ktxutils/
+ arch = any
+ license = MIT
+ makedepends = cmake
+ depends = glfw
+ depends = imagemagick
+ depends = glew
+ source = git+git://github.com/ekpyron/ktxutils
+ md5sums = SKIP
+
+pkgname = ktxutils-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c88528da36c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Daniel Kirchner <daniel at ekpyron dot org>
+pkgname=ktxutils-git
+_pkgbase=ktxutils
+pkgver=r14.78391f6
+pkgrel=1
+pkgdesc="Utilities for the KTX texture format"
+license=('MIT')
+arch=('any')
+url="http://github.com/ekpyron/${_pkgbase}/"
+depends=('glfw' 'imagemagick' 'glew')
+makedepends=('cmake')
+source=("git+git://github.com/ekpyron/${_pkgbase}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir"/${_pkgbase}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir"/${_pkgbase}
+ rm -rf build
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+}
+
+package() {
+ cd "${srcdir}/${_pkgbase}/build"
+ make install DESTDIR="${pkgdir}"
+}