aboutsummaryrefslogtreecommitdiffstats
path: root/testing/slock/APKBUILD
blob: 16b2b96a8ed659f498aed3cefba7b2aa7dcb44b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=slock
pkgver=1.2
pkgrel=0
pkgdesc="A simple screen locker for X"
url="http://tools.suckless.org/slock/"
arch="all"
license="MIT"
depends=""
depends_dev="libxext-dev"
makedepends="$depends_dev"
install=""
source="http://git.suckless.org/$pkgname/snapshot/$pkgname-$pkgver.tar.gz"
options="suid"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"

	local i=
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
		esac
	done
}

build() {
	cd "$_builddir"
	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" \
		-C "$_builddir" install
}

md5sums="bf404672242cf6575f07e094822b3ae8  slock-1.2.tar.gz"
sha256sums="0e577e4dca26063d3a4f06c1d4dac4c085a3481dfc00ad805f01f0a3dc676677  slock-1.2.tar.gz"
sha512sums="96b3853ef73dea5f11254babe332c43a3d011c0a04f301c178dbfa3f2c5b4c2aa300fe70d7bbde6bbd57dbc7a8a5b94bc8dcf81e2175fd671d36237798853045  slock-1.2.tar.gz"