summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e12929dabf89fb6029d1b4a0b14acde340eac85 (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
# Maintainer: ninian <mcfadzean.org.uk ta linux>

pkgname=dmenu-xyw-mouse-msel
pkgver=4.6
pkgrel=2
pkgdesc="Dynamic X menu - with x, y, width, line height, mouse, and multiselect support"
url="http://tools.suckless.org/dmenu/"
arch=('i686' 'x86_64')
license=('MIT')
depends=('sh' 'libxinerama' 'libxft' 'freetype2')
conflicts=('dmenu')
provides=('dmenu')
source=("http://dl.suckless.org/tools/dmenu-$pkgver.tar.gz"
        "http://tools.suckless.org/dmenu/patches/dmenu-$pkgver-xyw.diff"
        "http://tools.suckless.org/dmenu/patches/dmenu-$pkgver-mouse-support-msel.diff"
        "http://tools.suckless.org/dmenu/patches/dmenu-$pkgver-line-height.diff")
sha256sums=('4a7a24008a621c3cd656155ad91ab8136db8f0d3b9ec56dafeec518cabda96b3'
            '70494bbc9df5c65101646a2a3040b1784c0d5db882aa185e2015dc035c550d70'
            'db8659de2926dfe279b28864009ef7c545f4190ac98677ed30711df5c55b9dd4'
            '81a57a268c9b96f8fb3586f981fe60ec4889aa858d36cd2d521ae36b2903ae7d')

prepare() {
	cd $srcdir/dmenu-$pkgver
	patch -p1 < ../dmenu-$pkgver-xyw.diff
	patch -p1 < ../dmenu-$pkgver-mouse-support-msel.diff
	patch -p1 -F 3 < ../dmenu-$pkgver-line-height.diff
}

build() {
	cd $srcdir/dmenu-$pkgver
	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 FREETYPEINC=/usr/include/freetype2
}

package() {
	cd "$srcdir/dmenu-$pkgver"
	make DESTDIR=$pkgdir PREFIX=/usr install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}