blob: 81881c3ff7c6bfac2ef4ed35418ae2bdcf15e78c (
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
55
56
57
58
59
60
61
62
63
|
# Maintainer: Evan Pitstick <nerdx00 NOSPAM gmail DOT com>
# Based on: https://www.archlinux.org/packages/community/x86_64/sakura/
pkgname=sakura-bzr
_name=sakura
pkgver=492
pkgrel=1
pkgdesc="A terminal emulator based on GTK and VTE"
arch=('i686' 'x86_64')
url="https://launchpad.net/sakura"
license=('GPL')
depends=('vte290' 'libxft' 'desktop-file-utils')
makedepends=('cmake' 'bzr')
provides=('sakura')
conflicts=('sakura')
install=${pkgname}.install
source=(
"${pkgname}::bzr+https://launchpad.net/${_name}/trunk"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd ${srcdir}/${pkgname}
bzr revno
}
prepare() {
cd ${srcdir}/${pkgname}
# Set default font to something more generic
sed -i 's|#define DEFAULT_FONT "Ubuntu Mono,monospace 13"|#define DEFAULT_FONT "Monospace 10"|g' \
src/sakura.c
}
build() {
cd ${srcdir}/${pkgname}
# build & install
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
cd ${srcdir}/${pkgname}
make DESTDIR=${pkgdir} install
# extract the keybindings from the installed documentation, rest is only relevant during build time
awk '/^Keybindings/{f="'${pkgdir}'/usr/share/doc/'${_name}'/KEYBINDINGS"} f{print > f} /^END/' \
${pkgdir}/usr/share/doc/${_name}/INSTALL
rm ${pkgdir}/usr/share/doc/${_name}/INSTALL
}
# vim: ts=4 sts=4 sw=4 noet
|