summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 911d494ae3164b86d64fa360e4d77b771108f1a7 (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
# Maintainer: Kyle Guarco <kyleguarco55@gmail.com>

pkgbase=berry
_pkgname=berry
pkgname=berry-git
_pkgver=972f953
pkgver=git+$_pkgver
pkgrel=1
pkgdesc="A healthy, bite-sized window manager written over the XLib Library"
url="https://github.com/JLErvin/berry"
arch=('x86_64')
license=('MIT')
makedepends=('gcc' 'make')
depends=('libx11' 'libxft' 'libxinerama')
source=(
	"git://github.com/JLErvin/berry.git"
	berry.desktop
)
sha256sums=('SKIP' 'SKIP')

prepare() {
	cd $_pkgname

	git checkout $_pkgver
}

build() {
	cd $_pkgname

	# Compile the window manager
	make
}

package() {
	cd ${_pkgname}/

	# These variables are used in the Makefile to create the file directories.
	PREFIX="/usr/local/"
	MANPREFIX="${PREFIX}share/"
	EXAMPLEPREFIX="/etc/xdg/berry/"
	
	# Set the variables and install the files.
	make DESTDIR="${pkgdir}/" PREFIX=$PREFIX mandir=$MANPREFIX install
	
	# Install the examples (sample configuration files)
	mkdir -p "${pkgdir}/${EXAMPLEPREFIX}"
	install -D -m644 -t "${pkgdir}/etc/xdg/berry/" examples/*

	# Install berry.desktop
	cd -
	install -D -m644 -t "${pkgdir}/usr/share/applications/" berry.desktop
}