aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-28 11:28:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-28 11:33:08 +0000
commit0e0edbd5e19bc64403854504b78ffc41ccdd3d41 (patch)
tree5b86dc9f3d6222083399fefe894722bc124875f8
parent4526ec8f4aeea391047b32250ad474d58451c9e5 (diff)
downloadaports-0e0edbd5e19bc64403854504b78ffc41ccdd3d41.tar.gz
aports-0e0edbd5e19bc64403854504b78ffc41ccdd3d41.tar.bz2
aports-0e0edbd5e19bc64403854504b78ffc41ccdd3d41.tar.xz
testing/xfce4-screensaver: new aport
Screensaver and locker for XFCE https://git.xfce.org/apps/xfce4-screensaver/about/
-rw-r--r--testing/xfce4-screensaver/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/xfce4-screensaver/APKBUILD b/testing/xfce4-screensaver/APKBUILD
new file mode 100644
index 0000000000..512498c373
--- /dev/null
+++ b/testing/xfce4-screensaver/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-screensaver
+pkgver=0.1.3
+pkgrel=0
+pkgdesc="Screensaver and locker for XFCE"
+url="https://git.xfce.org/apps/xfce4-screensaver/about/"
+arch="all"
+license="GPL-2.0"
+makedepends="libx11-dev gtk+3.0-dev dbus-glib-dev glib-dev libxklavier-dev
+ xfconf-dev garcon-dev libxrandr-dev libxscrnsaver-dev libxfce4ui-dev
+ libxext-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://archive.xfce.org/src/apps/xfce4-screensaver/0.1/xfce4-screensaver-$pkgver.tar.bz2"
+builddir="$srcdir/xfce4-screensaver-$pkgver"
+options="suid" # FIXME: write an external helper with sgid shadow to avoid suid root
+
+_libexecdir=/usr/lib/xfce4
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=$_libexecdir \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-locking
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ chgrp shadow "$pkgdir"$_libexecdir/xfce4-screensaver-dialog
+ chmod +s "$pkgdir"$_libexecdir/xfce4-screensaver-dialog
+}
+
+sha512sums="749af5968937058618e4670904881e1bd4bee0b94c97629f07a7a8f00f38af25ad75ffc8a2590c70f7dbc597d60dab91700cbd2b6b47aae3458580e9de4107c5 xfce4-screensaver-0.1.3.tar.bz2"