summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: a35265558659ca68d76252372794e676b365ff7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $Id$
# Maintainer: xj9 <aur@xj-ix.luxe>

pkgname=xdwm
pkgver=6.2+tracker.3
pkgrel=4
pkgdesc="A dynamic window manager for X"
url="http://sunshinegardens.org/~xj9/wiki/xdwm/"
arch=('i686' 'x86_64')
license=('MIT')
options=(zipman)
conflicts=(dwm)
depends=(
	'alacritty'
	'dmenu'
	'freetype2'
	'libx11'
	'libxft'
	'libxinerama'
	'otf-font-awesome'
	'otf-hermit'
	'picom'
	'xorg-xsetroot'
)
optdepends=(
	'cantata'
	'feh'
	'network-manager-applet'
	'pasystray'
	'redshift'
	'xorg-xrandr'
)
install=dwm.install
source=($pkgname-$pkgver.tar.gz::http://codeberg.org/xjix/xjdwm/archive/$pkgver.tar.gz
	dwm.desktop)
sha256sums=('f36ed3a20d870d27c562e6ac5ea8b1c99fdae75e7f29dd10e9a3599e6c0af16f'
            'bc36426772e1471d6dd8c8aed91f288e16949e3463a9933fee6390ee0ccd3f81')

prepare() {
  cd "$srcdir/$pkgname"
}

build() {
  cd "$srcdir/$pkgname"
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 FREETYPEINC=/usr/include/freetype2
}

package() {
  cd "$srcdir/$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 "$srcdir/dwm.desktop" "$pkgdir/usr/share/xsessions/dwm.desktop"
}