X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=dwm-git%2FPKGBUILD;fp=dwm-git%2FPKGBUILD;h=d1a0e3caaead761553f6db10405613b984b0b92c;hb=b720d343f3ee3492d8027450a4636dc8a52793e0;hp=0000000000000000000000000000000000000000;hpb=17c5082273ac7a7bc23abb4abc08b9e952b45a49;p=perso%2FImmae%2FConfig%2FAUR.git diff --git a/dwm-git/PKGBUILD b/dwm-git/PKGBUILD new file mode 100644 index 0000000..d1a0e3c --- /dev/null +++ b/dwm-git/PKGBUILD @@ -0,0 +1,46 @@ +pkgname=dwm-git +_pkgname=dwm +pkgver=6.2 +pkgrel=1 +pkgdesc="A dynamic window manager for X" +url="http://dwm.suckless.org" +arch=('i686' 'x86_64') +license=('MIT') +options=(zipman) +depends=('libx11' 'libxinerama' 'libxft') +makedepends=('git') +install=dwm.install +provides=('dwm') +conflicts=('dwm') +epoch=1 +source=(dwm.desktop + "$_pkgname::git+http://git.suckless.org/dwm") +md5sums=('939f403a71b6e85261d09fc3412269ee' + 'SKIP') + +pkgver(){ + cd $_pkgname + git describe --tags |sed 's/-/./g' +} + +prepare() { + cd $_pkgname + if [[ -f "$SRCDEST/$pkgname/config.h" ]]; then + cp -f "$SRCDEST/$pkgname/config.h" config.h + fi +} + +build() { + cd $_pkgname + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 +} + +package() { + cd $_pkgname + make PREFIX=/usr DESTDIR="$pkgdir" install + install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -m644 -D README "$pkgdir/usr/share/doc/$pkgname/README" + install -m644 -D ../dwm.desktop "$pkgdir/usr/share/xsessions/dwm.desktop" +} + +# vim:set ts=2 sw=2 et: