mirror of
https://github.com/alrayyes/slock
synced 2023-11-13 18:16:41 +00:00
initial import
This commit is contained in:
commit
afef3a5404
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*.xz
|
||||
*.gz
|
||||
pkg/
|
||||
src/
|
32
PKGBUILD
Normal file
32
PKGBUILD
Normal file
@ -0,0 +1,32 @@
|
||||
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributor: Sebastian A. Liem <sebastian at liem dot se>
|
||||
|
||||
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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user