aboutsummaryrefslogblamecommitdiff
path: root/PKGBUILD
blob: 974f72ec30b1d412f5f2552a4c33cea4514aad27 (plain) (tree)
1
2
3
4
5
6
7
8
9

               
                      




                                    
 










                                        

                                                 


                                     
                                             















                                                                                

                                           
pkgname=dwm-git
_pkgname=dwm
pkgver=6.0.41.g3d1090b
pkgver(){
  cd $_pkgname
  git describe --tags |sed 's/-/./g'
}
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')
makedepends=('git')
install=dwm.install
provides=('dwm')
conflicts=('dwm')
epoch=1
source=( dwm.desktop
    "$_pkgname::git+http://git.suckless.org/dwm")

prepare() {
  if [[ -f $SRCDEST/config.h ]]; then
    ln -sf $SRCDEST/config.h $srcdir/config.h
  fi
}

build() {
  cd $_pkgname
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  make -C $_pkgname PREFIX=/usr DESTDIR=$pkgdir install
  install -m644 -D $_pkgname/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  install -m644 -D $_pkgname/README $pkgdir/usr/share/doc/$pkgname/README
  install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
}

# vim:set ts=2 sw=2 et:
md5sums=('939f403a71b6e85261d09fc3412269ee'
         'SKIP')