summaryrefslogtreecommitdiff
path: root/user/dmenu/APKBUILD
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-10-05 02:04:23 -0700
committerDan Theisen <djt@hxx.in>2018-10-05 02:04:23 -0700
commit812e6339c36cf0d5c04e01c01d7f978a26edbf81 (patch)
tree17b1224d928ad162b7bb690b7c48c1b6dc4c5d6b /user/dmenu/APKBUILD
parent97c4ea6e329bdbb366a9cde08abde53827b3aaa1 (diff)
downloadpackages-812e6339c36cf0d5c04e01c01d7f978a26edbf81.tar.gz
packages-812e6339c36cf0d5c04e01c01d7f978a26edbf81.tar.bz2
packages-812e6339c36cf0d5c04e01c01d7f978a26edbf81.tar.xz
packages-812e6339c36cf0d5c04e01c01d7f978a26edbf81.zip
user/dmenu: new package
Diffstat (limited to 'user/dmenu/APKBUILD')
-rw-r--r--user/dmenu/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/dmenu/APKBUILD b/user/dmenu/APKBUILD
new file mode 100644
index 000000000..39a27bc5a
--- /dev/null
+++ b/user/dmenu/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Eivind Uggedal <eivind@uggedal.com>
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=dmenu
+pkgver=4.8
+pkgrel=0
+pkgdesc="Dynamic menu for X"
+url="https://tools.suckless.org/dmenu/"
+arch="all"
+license="MIT OR X11"
+depends=""
+makedepends="libx11-dev libxinerama-dev libxft-dev"
+options="!check" # This package has no testsuite
+subpackages="$pkgname-doc"
+source="https://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
+ -e '/LDFLAGS/{s/-s//;s/=/+=/}' \
+ "$builddir"/config.mk
+}
+
+build() {
+ make X11INC=/usr/include/X11 \
+ X11LIB=/usr/lib/X11 \
+ FREETYPEINC=/usr/include/freetype2 \
+ -C "$builddir"
+}
+
+package() {
+ make DESTDIR=$pkgdir PREFIX=/usr \
+ -C "$builddir" install
+}
+
+sha512sums="fa2700018cfb912a21f867ef3ca771a58a25c2cb8e1fb37acef046bb15d8d8b92dcc5bfce486befae0f143495d0283910988e181a9eb143be3bb1b5be9738d77 dmenu-4.8.tar.gz"