PKGBUILD (1066B)
1 _pkgname=dwm 2 pkgname=$_pkgname-larbs-git 3 pkgver=6.2.r1888.0ac09e0 4 pkgrel=1 5 pkgdesc="Luke's build of dwm" 6 url=https://github.com/LukeSmithxyz/dwm 7 arch=(i686 x86_64) 8 license=(MIT) 9 makedepends=(git) 10 depends=(freetype2 libx11 libxft) 11 optdepends=( 12 'dmenu: program launcher' 13 'st: terminal emulator') 14 provides=($_pkgname) 15 conflicts=($_pkgname) 16 source=(git+https://github.com/LukeSmithxyz/dwm) 17 sha256sums=('SKIP') 18 19 pkgver() { 20 cd "$_pkgname" 21 echo "$(awk '/^VERSION =/ {print $3}' config.mk)".r"$(git rev-list --count HEAD)"."$(git rev-parse --short HEAD)" 22 } 23 24 prepare() { 25 cd "$_pkgname" 26 echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk 27 echo "CFLAGS+=${CFLAGS}" >> config.mk 28 echo "LDFLAGS+=${LDFLAGS}" >> config.mk 29 # to use a custom config.h, place it in the package directory 30 if [[ -f ${SRCDEST}/config.h ]]; then 31 cp "${SRCDEST}/config.h" . 32 fi 33 } 34 35 build() { 36 cd "$_pkgname" 37 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 38 } 39 40 package() { 41 cd "$_pkgname" 42 make PREFIX=/usr DESTDIR="$pkgdir" install 43 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 44 }