aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-06-12 09:05:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-12 09:24:38 +0000
commit367aeab97b5d97387ffc1d5c7660d0e95502d47e (patch)
treee483d9e693e0b01fc92d1bf91e794c641dbcf270 /community
parent9987b5a83fc3e0b7c0706a3e8063bca251a7b098 (diff)
downloadaports-367aeab97b5d97387ffc1d5c7660d0e95502d47e.tar.bz2
aports-367aeab97b5d97387ffc1d5c7660d0e95502d47e.tar.xz
community/xfce4-screensaver: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/xfce4-screensaver/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/xfce4-screensaver/APKBUILD b/community/xfce4-screensaver/APKBUILD
new file mode 100644
index 0000000000..d956fea121
--- /dev/null
+++ b/community/xfce4-screensaver/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-screensaver
+pkgver=0.1.4
+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="5f074eb3c34ba731d0c135c657043ee687809146be512943f0f2892e1d06806400a5ecb1278dcb47da39ded47ddd4f9020cefc917ebb502962e16e56ee3a9b6d xfce4-screensaver-0.1.4.tar.bz2"