2020-11-28 10:14:26 +00:00
|
|
|
# Maintainer: Ryan Kes <ryan@ryankes.eu>
|
2019-03-17 16:50:41 +00:00
|
|
|
|
|
|
|
pkgname=dmenu
|
2020-11-28 08:40:47 +00:00
|
|
|
pkgver=5.0
|
2020-11-28 10:25:16 +00:00
|
|
|
pkgrel=1
|
2019-03-17 16:50:41 +00:00
|
|
|
pkgdesc='Generic menu for X'
|
|
|
|
url='https://tools.suckless.org/dmenu/'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MIT')
|
2020-11-28 12:47:12 +00:00
|
|
|
depends=('sh' 'glibc' 'coreutils' 'libx11' 'libxinerama' 'freetype2' 'fontconfig' 'libfontconfig.so' 'menu-calc' 'pass' 'yubikey-oath-dmenu')
|
2019-03-18 14:30:39 +00:00
|
|
|
|
2020-11-28 08:40:47 +00:00
|
|
|
sha512sums=('2b6a7cdf5aefc5e7ca7a4944883c3c16ee6f5005d2a96b61482d4899ad395f9cb8926907681d88b9df3e1188cf421dad4cc17e343b752f6cb8b161d33384b3f3'
|
2020-11-28 12:47:12 +00:00
|
|
|
'254cd0c4e82149700004897ca5ef6be63b02d791ce327c2a4f68d6ee6599645e5b469771514e80e188c4e531caa3e4349ecb035b2fdc10b687a380b7d6b36632'
|
2020-11-28 10:14:26 +00:00
|
|
|
'ad8183cca1ad1dd5b786896f94d127eeea53cece291c485f928388a7589402f49ed7e0ee8bdae71cc2ed41f3276b96591349cd820621f345376a54d557307fdf'
|
|
|
|
'beed0f7725d84b4d73cb35fb7d78d7db90c7fa15ed0ac4d6cf19e6469caf83167bc3edae246c30a2f0a79e765b46d9a37997a9a72f5dec147cc0a904fa2ef790'
|
|
|
|
'ce806c6481b20d5b2352fc387816878c75285162f6404b3a969a95f9dbd6c7476fd4c6571f260886fa30ccc40e4a388ea8f6902e40ff90447e04bec3faf0669d'
|
|
|
|
'6ce4ce0ddb9c1058f253ce46cdae8949c468d97ce7d787831d8a4f4ebd4db672761e2552703f58d36d01b2933dea624a30627629027b9a5960b404542a40a732'
|
|
|
|
'dd46c1ac2ea8d5ffc29c01ec83ef7dc771d50475252a5723495a4969e5315e29ce059c2ee4f82f6c8b75d12868e27b3d9dfe74f9825ab86ac7a407902b29a2ab'
|
|
|
|
'e6ff377a4a4ed9e98d05a8870d6c57a5f89f853b0ec1160c3702642f899d8079eca595775b3d9f436bd67626fd4df659e511faa6d026130b07eef09a7c0c8b85'
|
|
|
|
'15d88ea4f10c2fa6fb3eb7478f23b24210a0da3542ae7a5be609013500c15564eedd8153d850f079c2c1f4bab1f5e61ff51153e4c85445ee04a0de5c851e305a')
|
2019-03-18 14:30:39 +00:00
|
|
|
|
2020-11-28 10:14:26 +00:00
|
|
|
_patches=(
|
|
|
|
"dmenu-border-4.9.diff"
|
|
|
|
"dmenu-fuzzyhighlight-4.9.diff"
|
|
|
|
"dmenu-fuzzymatch-4.9.diff"
|
|
|
|
"local-dmenu-morecolor-20190922-4bf895b.diff"
|
|
|
|
"local-dmenu-mousesupport-5.0.diff"
|
|
|
|
"dmenu-numbers-4.9.diff"
|
|
|
|
)
|
2019-03-18 14:30:39 +00:00
|
|
|
|
|
|
|
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:
|