2017-11-20 15:36:30 +00:00
|
|
|
# $Id$
|
2019-02-04 16:01:41 +00:00
|
|
|
# Maintainer: Ryan Kes <alrayyes@gmail.com>
|
2017-11-20 15:36:30 +00:00
|
|
|
|
|
|
|
pkgname=dwm
|
2019-02-06 10:25:47 +00:00
|
|
|
pkgver=6.2
|
2019-02-17 17:59:28 +00:00
|
|
|
pkgrel=1
|
2017-11-20 15:36:30 +00:00
|
|
|
pkgdesc="A dynamic window manager for X"
|
|
|
|
url="http://dwm.suckless.org"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('MIT')
|
|
|
|
options=(zipman)
|
2019-02-04 16:00:05 +00:00
|
|
|
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'st' 'dmenu' 'nerd-fonts-source-code-pro')
|
2017-11-20 15:36:30 +00:00
|
|
|
install=dwm.install
|
2019-02-04 15:58:11 +00:00
|
|
|
|
2019-02-14 15:56:39 +00:00
|
|
|
_patches=(
|
2019-02-17 17:59:28 +00:00
|
|
|
"https://dwm.suckless.org/patches/systray/dwm-systray-20180314-3bd8466.diff"
|
2019-02-14 15:56:39 +00:00
|
|
|
"https://dwm.suckless.org/patches/noborder/dwm-noborder-20170207-bb3bd6f.diff"
|
2019-02-17 18:14:06 +00:00
|
|
|
"https://dwm.suckless.org/patches/attachaside/dwm-attachaside-20180126-db22360.diff"
|
2019-02-17 18:16:36 +00:00
|
|
|
"https://dwm.suckless.org/patches/autostart/dwm-autostart-20161205-bb3bd6f.diff"
|
2019-02-17 18:24:39 +00:00
|
|
|
"https://dwm.suckless.org/patches/cyclelayouts/dwm-cyclelayouts-20180524-6.2.diff"
|
2019-02-14 15:56:39 +00:00
|
|
|
)
|
2019-02-04 15:58:11 +00:00
|
|
|
|
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[@]}")
|
|
|
|
|
2019-02-06 10:25:47 +00:00
|
|
|
md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
|
2019-02-17 18:24:39 +00:00
|
|
|
'40ee758824a08469db3af95ab15d2222'
|
2019-02-04 15:58:11 +00:00
|
|
|
'939f403a71b6e85261d09fc3412269ee'
|
2019-02-17 17:59:28 +00:00
|
|
|
'2c19f1a3db59e158c45483668f4cee24'
|
2019-02-17 18:14:06 +00:00
|
|
|
'fbb786263f2d714b18368ff64779d669'
|
2019-02-17 18:16:36 +00:00
|
|
|
'c75af619c04cfae7b9740ec140d1dc6c'
|
2019-02-17 18:24:39 +00:00
|
|
|
'46ff022e2a2c6139e71399eb19d1aebb'
|
|
|
|
'5baffd8c124095d06b133e9b31a854b2')
|
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
|
|
|
|
}
|