blob: ea7f43f4384c6ee32af0d9bf0fb760fa10bf1433 (
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=e5bcb3
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+https://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/"
EXAMPLEPREFIX="/etc/xdg/berry/"
# Set the variables and install the files.
./configure --prefix=/usr
make DESTDIR="${pkgdir}" 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
}
|