summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--LICENSE13
-rw-r--r--PKGBUILD30
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..a5eff09
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = xdimmer-git
+ pkgdesc = lightweight X11 utility to dim the screen and/or keyboard backlight when idle
+ pkgver = v1.7.r3.gae37d7f
+ pkgrel = 1
+ url = https://github.com/jcs/xdimmer
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ arch = aarch64
+ license = BSD-3-Clause
+ depends = libbsd
+ depends = libx11
+ depends = libxrandr
+ depends = libxext
+ depends = libxi
+ provides = xdimmer
+ conflicts = xdimmer
+ source = git+https://github.com/jcs/xdimmer
+ sha256sums = SKIP
+
+pkgname = xdimmer-git
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..385e5e6
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright Arch Linux Contributors
+
+Permission to use, copy, modify, and/or distribute this software for
+any purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
+FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
+DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..9a1482f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: lonkaars <loek at pipeframe dot xyz>
+
+pkgname=xdimmer-git
+pkgver=v1.7.r3.gae37d7f
+pkgrel=1
+pkgdesc='lightweight X11 utility to dim the screen and/or keyboard backlight when idle'
+arch=(i686 x86_64 armv7h aarch64)
+license=('BSD-3-Clause')
+depends=(libbsd libx11 libxrandr libxext libxi)
+provides=(xdimmer)
+conflicts=(xdimmer)
+url=https://github.com/jcs/xdimmer
+source=(git+https://github.com/jcs/xdimmer)
+sha256sums=(SKIP)
+
+pkgver() {
+ cd "${srcdir}/xdimmer"
+ git describe --long --tags | sed 's/[^-]*-g/r\0/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/xdimmer"
+ LIBS='-lbsd' make
+}
+
+package() {
+ cd "${srcdir}/xdimmer"
+ PREFIX=/usr DESTDIR="$pkgdir" make install
+}
+