summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Sinitsyn2017-12-29 10:12:53 +0300
committerBogdan Sinitsyn2017-12-29 10:12:53 +0300
commitc569d0cc8dd75cab96e3c9f562d4566a56e53984 (patch)
tree88d94665d5e82c29e15cfd4beb96498d22164e75
downloadaur-c569d0cc8dd75cab96e3c9f562d4566a56e53984.tar.gz
Initial commit
-rw-r--r--.SRCINFO33
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD64
3 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3790b48c443
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+# Generated by mksrcinfo v8
+# Fri Dec 29 07:12:26 UTC 2017
+pkgbase = simple-viewer-gl-git
+ pkgdesc = Simple and tiny image viewer based on OpenGL
+ pkgver = v2.92.r40.g58d2a35
+ pkgrel = 1
+ url = https://bitbucket.org/andreyu/simple-viewer-gl
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ depends = glfw
+ depends = libjpeg
+ depends = libpng
+ depends = giflib
+ depends = libtiff
+ depends = libwebp
+ depends = freetype2
+ depends = lcms2
+ depends = zlib
+ depends = libexif
+ depends = libxrandr
+ depends = libxcursor
+ depends = imlib2
+ depends = openexr
+ provides = simple-viewer-gl
+ conflicts = simple-viewer-gl
+ source = simple-viewer-gl::git+https://bitbucket.org/andreyu/simple-viewer-gl.git
+ md5sums = SKIP
+
+pkgname = simple-viewer-gl-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..018a3de0814
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a57bab1587c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Bogdan Sinitsyn <bogdan.sinitsyn@gmail.com>
+pkgname=simple-viewer-gl-git
+pkgver=v2.92.r40.g58d2a35
+pkgrel=1
+pkgdesc='Simple and tiny image viewer based on OpenGL'
+arch=('i686' 'x86_64')
+url='https://bitbucket.org/andreyu/simple-viewer-gl'
+license=('GPL2')
+depends=(
+ glfw
+ libjpeg
+ libpng
+ giflib
+ libtiff
+ libwebp
+ freetype2
+ lcms2
+ zlib
+ libexif
+ libxrandr
+ libxcursor
+
+# Could be opt out
+ imlib2
+ openexr
+)
+makedepends=(
+ git
+ cmake
+)
+optdepends=(
+ # 'imlib2: Common formats support'
+ # 'openexr: OpenEXR support'
+)
+provides=(${pkgname%-git})
+conflicts=(
+ ${pkgname%-git}
+)
+source=("${pkgname%-git}::git+https://bitbucket.org/andreyu/simple-viewer-gl.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+
+ make release
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+
+ make DESTDIR="$pkgdir/" PREFIX="/usr/" install
+ install -m 755 -d "$pkgdir/usr/share/applications/"
+ install -m 644 sviewgl.desktop "$pkgdir/usr/share/applications/"
+ install -m 755 -d "$pkgdir/usr/share/icons/"
+ install -m 644 sviewgl.png "$pkgdir/usr/share/icons/"
+}
+
+# vim:set ts=2 sw=2 et: