# Maintainer: koraynilay pkgname=scrnsvr pkgver=1.19 pkgrel=1 pkgdesc="Yet Another X Screensaver/locker" arch=('x86_64') url="https://github.com/koraynilay/scrnsvr" license=('WTFPL') depends=('libxss' 'pcre' 'libdbus' 'python') makedepends=('git' 'gcc') conflicts=('scrnsvr-bin') source=("$pkgname-$pkgver::git+https://github.com/koraynilay/scrnsvr") optdepends=('dunst: dunstify for notifications' 'libnotify: for notifications' 'libxinerama: for multi-monitor with xinerama fullscreen check support' 'libxrandr: for multi-monitor with xrandr fullscreen check support') install="scrnsvr.install" md5sums=("SKIP") build() { cd "$srcdir/$pkgname-$pkgver" gcc -O3 -Wl,-z,relro,-z,now src/scrnsvr.c -o bin/scrnsvr -lpthread -lXss -lX11 -lXinerama -lXrandr -lpcre } package() { cd "$pkgname-$pkgver" install -Dm0755 bin/scrnsvr "$pkgdir/usr/bin/$pkgname" install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/scrnsvr/LICENSE" install -Dm0644 RETURN_CODES.txt "$pkgdir/usr/share/scrnsvr/RETURN_CODES.txt" install -Dm0644 scrnsvr.ini.example "$pkgdir/usr/share/scrnsvr/scrnsvr.ini.example" #install -Dm0644 scrnsvr.service "$pkgdir/usr/lib/systemd/user/scrnsvr.service" }