2019-03-17 16:50:41 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
|
|
# Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de>
|
|
|
|
# Contributor: Thayer Williams <thayer@archlinux.org>
|
|
|
|
# Contributor: Jeff 'codemac' Mickey <jeff@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=dmenu
|
|
|
|
pkgver=4.9
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Generic menu for X'
|
|
|
|
url='https://tools.suckless.org/dmenu/'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MIT')
|
2019-03-19 13:42:37 +00:00
|
|
|
depends=('sh' 'libxinerama' 'libxft' 'freetype2' 'menu-calc' 'pass')
|
2019-03-18 14:30:39 +00:00
|
|
|
|
|
|
|
sha512sums=('c2779209fe012de8ca1cdd72923da6d594f4a8368c85c3c0e0afd4ae489a95fe0e6f05a947d115b6b389aa7170ab14c2c645a2031353b0a08f38327ab461fe65'
|
|
|
|
'c06677bb73955f4aaf73bd9556d6ae016c27157913b3695a324453a9fe00ca720a2d3de67c9bbd3cde9440d372ab3df62680faa08fe82f8a9f1f77fc1f88b474')
|
|
|
|
|
|
|
|
_patches=()
|
|
|
|
|
|
|
|
source=(https://dl.suckless.org/tools/dmenu-${pkgver}.tar.gz
|
|
|
|
config.h
|
|
|
|
"${_patches[@]}")
|
2019-03-17 16:50:41 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk
|
|
|
|
echo "CFLAGS+=${CFLAGS}" >> config.mk
|
|
|
|
echo "LDFLAGS+=${LDFLAGS}" >> config.mk
|
2019-03-18 14:30:39 +00:00
|
|
|
|
|
|
|
for patch in "${_patches[@]}"; do
|
|
|
|
echo "Applying patch $(basename $patch)..."
|
|
|
|
patch -Np1 -i "$srcdir/$(basename $patch)"
|
|
|
|
done
|
|
|
|
|
|
|
|
cp $srcdir/config.h config.h
|
2019-03-17 16:50:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make \
|
|
|
|
X11INC=/usr/include/X11 \
|
|
|
|
X11LIB=/usr/lib/X11 \
|
|
|
|
FREETYPEINC=/usr/include/freetype2
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make PREFIX=/usr DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|
|
|
|
|