void-packages/srcpkgs/dwm/template
2017-09-12 22:54:53 +02:00

25 lines
834 B
Bash

# Template file for 'dwm'
pkgname=dwm
version=6.1
revision=1
homepage="http://dwm.suckless.org"
distfiles="https://dl.suckless.org/dwm/dwm-$version.tar.gz"
makedepends="libXinerama-devel libXft-devel freetype-devel"
short_desc="A dynamic window manager for X"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
checksum=c2f6c56167f0acdbe3dc37cca9c1a19260c040f2d4800e3529a21ad7cce275fe
do_build() {
cp ${FILESDIR}/config.h config.h
sed -i "/CFLAGS/s|\${CPPFLAGS}|& $CFLAGS|g" config.mk
sed -i "/LDFLAGS/s|\-s|$LDFLAGS|g" config.mk
make CC=$CC INCS="-I. -I${XBPS_CROSS_BASE}/usr/include/freetype2" LIBS="-lX11 -lXinerama -lXft -lfontconfig"
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall README 644 usr/share/doc/$pkgname
vinstall ${FILESDIR}/dwm.desktop 644 usr/share/xsessions
vlicense LICENSE
}