aboutsummaryrefslogtreecommitdiffstats
path: root/main/dmenu/APKBUILD
blob: 9ff394ae4d9d12a4109606c72cb90aee3d2c2a6f (plain)
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
42
43
# Contributor: Eivind Uggedal <eivind@uggedal.com>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dmenu
pkgver=4.6
pkgrel=0
pkgdesc="Dynamic menu for X"
url="http://tools.suckless.org/dmenu/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="libx11-dev libxinerama-dev libxft-dev"
install=""
subpackages="$pkgname-doc"
source="http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz
	freetypeinc.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	make -C "$_builddir" || return 1
}

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

md5sums="6fedf081133bc0725cb040b3b8ac3fac  dmenu-4.6.tar.gz
9b53d204b009bc23ffc22b615f719eb3  freetypeinc.patch"
sha256sums="4a7a24008a621c3cd656155ad91ab8136db8f0d3b9ec56dafeec518cabda96b3  dmenu-4.6.tar.gz
6229575db4eb0e79ca8399c6eebb0e9467208f30b7ae23f578733e7442a942b8  freetypeinc.patch"
sha512sums="e54fd10c0b1274eb90173aea442f0bfc496f4dda861a36d94f939e1fd835594f9aa12f3d0f90043d64e519d919b9a5273ab65012230ac022f727ee6bb64862e3  dmenu-4.6.tar.gz
607485a9e1a8c338255ecbf9fc22db6560f40c3692f80b43a89517e34b4819386d1c91c58346e6dc46f1c393c4d888e0012cf374f803e04ab381010bedb08647  freetypeinc.patch"