25 lines
868 B
Bash
25 lines
868 B
Bash
# Template file for 'dwm'
|
|
pkgname=dwm
|
|
version=6.1
|
|
revision=2
|
|
makedepends="libXinerama-devel libXft-devel freetype-devel"
|
|
short_desc="A dynamic window manager for X"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://dwm.suckless.org"
|
|
distfiles="https://dl.suckless.org/dwm/dwm-${version}.tar.gz"
|
|
checksum=c2f6c56167f0acdbe3dc37cca9c1a19260c040f2d4800e3529a21ad7cce275fe
|
|
|
|
do_build() {
|
|
[ -e ${FILESDIR}/config.h ] && 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
|
|
}
|