aboutsummaryrefslogtreecommitdiffstats
path: root/main/dmenu/APKBUILD
blob: 3e778fb6b0e7e4c000309ad4cc292d297cafad98 (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
# Contributor: Eivind Uggedal <eivind@uggedal.com>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dmenu
pkgver=4.6
pkgrel=1
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"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	default_prepare || return 1
	sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
		-e '/LDFLAGS/{s/-s//;s/=/+=/}' \
		"$builddir"/config.mk || return 1
}

build() {
	make X11INC=/usr/include/X11 \
		X11LIB=/usr/lib/X11 \
		FREETYPEINC=/usr/include/freetype2 \
		-C "$builddir" || return 1
}

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

md5sums="6fedf081133bc0725cb040b3b8ac3fac  dmenu-4.6.tar.gz"
sha256sums="4a7a24008a621c3cd656155ad91ab8136db8f0d3b9ec56dafeec518cabda96b3  dmenu-4.6.tar.gz"
sha512sums="e54fd10c0b1274eb90173aea442f0bfc496f4dda861a36d94f939e1fd835594f9aa12f3d0f90043d64e519d919b9a5273ab65012230ac022f727ee6bb64862e3  dmenu-4.6.tar.gz"