mirror of
https://github.com/alrayyes/slock
synced 2023-11-13 18:16:41 +00:00
32 lines
872 B
Bash
32 lines
872 B
Bash
# Maintainer: Ryan Kes <alrayyes@gmail.com>
|
|
|
|
pkgname=slock
|
|
pkgver=1.4
|
|
pkgrel=3
|
|
pkgdesc="A simple screen locker for X"
|
|
arch=('x86_64')
|
|
url="http://tools.suckless.org/slock"
|
|
license=('MIT')
|
|
depends=('libxext' 'libxrandr')
|
|
source=("http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz")
|
|
#source=("slock-$pkgver.tar.bz2::http://hg.suckless.org/slock/archive/$_pkgver.tar.gz")
|
|
md5sums=('f91dd5ba50ce7bd1842caeca067086a3')
|
|
|
|
prepare() {
|
|
cd "$srcdir/slock-$pkgver"
|
|
sed -i 's|static const char \*group = "nogroup";|static const char *group = "nobody";|' config.def.h
|
|
sed -ri 's/((CPP|C|LD)FLAGS) =/\1 +=/g' config.mk
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/slock-$pkgver"
|
|
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/slock-$pkgver"
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
|
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|