2017-11-20 15:36:30 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
|
|
|
|
# Contributor: Grigorios Bouzakis <grbzks@gmail.com>
|
|
|
|
|
|
|
|
pkgname=dwm
|
|
|
|
pkgver=6.1
|
|
|
|
pkgrel=3
|
|
|
|
pkgdesc="A dynamic window manager for X"
|
|
|
|
url="http://dwm.suckless.org"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('MIT')
|
|
|
|
options=(zipman)
|
|
|
|
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'st' 'dmenu')
|
|
|
|
install=dwm.install
|
2019-02-04 15:58:11 +00:00
|
|
|
|
|
|
|
_patches=("https://dwm.suckless.org/patches/alpha/dwm-alpha-6.1.diff")
|
|
|
|
|
2017-11-20 15:36:30 +00:00
|
|
|
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
|
|
|
|
config.h
|
2019-02-04 15:58:11 +00:00
|
|
|
dwm.desktop
|
|
|
|
"${_patches[@]}")
|
|
|
|
|
2017-11-20 15:36:30 +00:00
|
|
|
md5sums=('f0b6b1093b7207f89c2a90b848c008ec'
|
2019-02-04 15:58:11 +00:00
|
|
|
'fcc09a7d94b4b3be21444ca54f9d2bdc'
|
|
|
|
'939f403a71b6e85261d09fc3412269ee'
|
|
|
|
'e6858ff16b9eb1d7fa42a96b59847395')
|
2017-11-20 15:36:30 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2019-02-04 15:58:11 +00:00
|
|
|
|
|
|
|
for patch in "${_patches[@]}"; do
|
|
|
|
echo "Applying patch $(basename $patch)..."
|
|
|
|
patch -Np1 -i "$srcdir/$(basename $patch)"
|
|
|
|
done
|
|
|
|
|
2017-11-20 15:36:30 +00:00
|
|
|
cp $srcdir/config.h config.h
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 FREETYPEINC=/usr/include/freetype2
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
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 $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
|
|
|
|
}
|