summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Robitaille2019-07-16 17:09:29 -0300
committerMarcel Robitaille2019-07-16 17:09:29 -0300
commita2eefbab747e07ac53f303825b8f73053d032335 (patch)
tree934d26fb0c1e678d570f6edc36870ed7065bf4e6
downloadaur-gllock-crt-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD35
-rw-r--r--config.mk.patch18
4 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0f6329ff2bc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = gllock-crt-git
+ pkgdesc = not so simple opengl based X display locker utility -- crt shader
+ pkgver = r64.c77658b
+ pkgrel = 1
+ url = https://github.com/kuravih/gllock
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = clang
+ makedepends = gcc
+ makedepends = make
+ makedepends = xorgproto
+ makedepends = glew
+ provides = gllock
+ conflicts = gllock
+ source = gllock-git::git+https://github.com/kuravih/gllock
+ source = config.mk.patch
+ md5sums = SKIP
+ md5sums = f06f5d3badfd75859957e473f5197fd6
+
+pkgname = gllock-crt-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..614d2fe0ad7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg
+src
+tags
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6509a7a518c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Marcel Robitaille mail@marcelrobitaille.me
+pkgname=gllock-crt-git
+pkgver=r64.c77658b
+pkgrel=1
+pkgdesc="not so simple opengl based X display locker utility -- crt shader"
+arch=("i686" "x86_64")
+url="https://github.com/kuravih/gllock"
+license=('MIT')
+provides=('gllock')
+conflicts=('gllock')
+depends=()
+makedepends=('git' 'clang' 'gcc' 'make' 'xorgproto' 'glew')
+source=('gllock-git::git+https://github.com/kuravih/gllock' 'config.mk.patch')
+md5sums=('SKIP' 'f06f5d3badfd75859957e473f5197fd6')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+ patch --forward --strip=1 --input="${srcdir}/config.mk.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ export DESTDIR="${pkgdir}"
+ make install
+}
diff --git a/config.mk.patch b/config.mk.patch
new file mode 100644
index 00000000000..4dceb119928
--- /dev/null
+++ b/config.mk.patch
@@ -0,0 +1,18 @@
+diff --unified --recursive --text gllock-git.orig/config.mk gllock-git.new/config.mk
+--- gllock-git.orig/config.mk 2019-07-16 16:56:00.267620365 -0300
++++ gllock-git.new/config.mk 2019-07-16 16:57:42.950017875 -0300
+@@ -8,11 +8,11 @@
+
+ # shader
+ # FRGMNT_SHADER = blur.fragment.glsl
+-FRGMNT_SHADER = circle.fragment.glsl
++# FRGMNT_SHADER = circle.fragment.glsl
+ # FRGMNT_SHADER = square.fragment.glsl
+ # FRGMNT_SHADER = glitch.fragment.glsl
+ # FRGMNT_SHADER = ascii.fragment.glsl
+-# FRGMNT_SHADER = crt.fragment.glsl
++FRGMNT_SHADER = crt.fragment.glsl
+
+ PREFIX = /usr/local
+
+Only in gllock-git.new: tags