dwm/PKGBUILD

75 lines
2.3 KiB
Text
Raw Normal View History

# $Id$
2019-02-04 16:01:41 +00:00
# Maintainer: Ryan Kes <alrayyes@gmail.com>
2019-06-18 09:30:24 +00:00
pkgname=higherlearning-dwm
2019-02-06 10:25:47 +00:00
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)
2019-11-10 18:31:40 +00:00
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'dmenu' 'otf-nerd-fonts-fira-code')
2019-06-18 09:30:24 +00:00
optdepends=('gllock-git' 'higherlearning-st')
2019-06-18 09:33:25 +00:00
conflicts=('dwm')
install=dwm.install
2019-02-04 15:58:11 +00:00
2019-02-14 15:56:39 +00:00
_patches=(
2019-03-13 14:36:50 +00:00
"dwm-systray-20190208-cb3f58a.diff"
"dwm-noborder-20170207-bb3bd6f.diff"
"dwm-autostart-20161205-bb3bd6f.diff"
"dwm-cyclelayouts-20180524-6.2.diff"
"dwm-gridmode-20170909-ceac8c9.diff"
"dwm-r1615-selfrestart.diff"
2019-02-25 15:37:53 +00:00
"local-hide_vacant_tags-git-20160626-7af4d43.diff"
2019-02-25 16:42:13 +00:00
"local-statuscolors-20181008-b69c870.diff"
2019-03-13 14:33:30 +00:00
"local-fancybar-2019018-b69c870.diff"
2019-03-05 17:27:39 +00:00
"local-scratchpad-20170207-bb3bd6f.diff"
2019-03-13 08:49:55 +00:00
"local-alpha-20180613-b69c870.diff"
2019-02-14 15:56:39 +00:00
)
2019-02-04 15:58:11 +00:00
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
2019-03-13 08:49:55 +00:00
config.h
dwm.desktop
"${_patches[@]}")
2019-02-04 15:58:11 +00:00
2019-02-06 10:25:47 +00:00
md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
2019-11-10 17:49:54 +00:00
'598fcb5275d7f036807765370b5a226d'
2019-02-04 15:58:11 +00:00
'939f403a71b6e85261d09fc3412269ee'
2019-03-13 13:18:44 +00:00
'31a7569d7f3d43846f59e854ec5d1da0'
'fbb786263f2d714b18368ff64779d669'
2019-02-17 18:24:39 +00:00
'46ff022e2a2c6139e71399eb19d1aebb'
2019-02-18 14:08:47 +00:00
'5baffd8c124095d06b133e9b31a854b2'
2019-02-18 14:14:10 +00:00
'6055775113fd4dc06200bc6aaafb72fb'
2019-02-25 15:37:53 +00:00
'aa3d5f3c45057a2a6ee73aede3fc218a'
2019-02-25 16:42:13 +00:00
'd2781ac29048fc50e42e0f11e6cf7bce'
2019-03-05 16:57:02 +00:00
'c5469c1457955a8447e05ec5118b3ce6'
2019-03-13 14:33:30 +00:00
'77e3bfab2270dde73caf4e1b14566386'
2019-03-12 13:46:04 +00:00
'7381051e12596394791092f0d39a2dd2'
2019-03-13 13:18:44 +00:00
'60a545c6661638af619913e2a093ebf8')
prepare() {
2019-06-18 09:30:24 +00:00
cd $srcdir/dwm-$pkgver
sed -i "25 a \ \t{ NULL, NULL }," "$srcdir/$(basename ${_patches[4]})"
2019-02-18 14:08:47 +00:00
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
cp $srcdir/config.h config.h
}
build() {
2019-06-18 09:30:24 +00:00
cd $srcdir/dwm-$pkgver
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 FREETYPEINC=/usr/include/freetype2
}
package() {
2019-06-18 09:30:24 +00:00
cd $srcdir/dwm-$pkgver
make PREFIX=/usr DESTDIR=$pkgdir install
2019-06-18 09:30:24 +00:00
install -m644 -D LICENSE $pkgdir/usr/share/licenses/dwm/LICENSE
install -m644 -D README $pkgdir/usr/share/doc/dwm/README
install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
}