1 # Maintainer: SiD / sidious <miste78 at web de>
2 # (d)on't (a)sk (m)e ;)
8 pkgdesc="A terminal emulator based on GTK and VTE with disabled really close question"
10 url="http://pleyades.net/david/sakura.php"
12 depends=('vte' 'libxft' 'desktop-file-utils')
16 source=(http://pleyades.net/david/projects/$_pkgname/$_pkgname-$pkgver.tar.bz2 closequestion.patch)
17 install=sakura.install
19 md5sums=('46669519c77f7402b2de24cdefe251bb'
20 '356403228a2c0da2f31c4c848c041c0f')
23 cd $srcdir/${_pkgname}-${pkgver}
25 # Set default font size a bit smaller
26 sed -i 's|#define DEFAULT_FONT "Bitstream Vera Sans Mono 14"|#define DEFAULT_FONT "Bitstream Vera Sans Mono 10"|g' src/sakura.c
28 # Disable "really close question"
29 patch -Np0 -i ${srcdir}/closequestion.patch
32 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
37 cd $srcdir/${_pkgname}-${pkgver}
39 make DESTDIR=${pkgdir} install
40 # extract the keybindings from the installed documentation, rest is only relevant during build time
41 awk '/^Keybindings/{f="'${pkgdir}'/usr/share/doc/'${_pkgname}'/KEYBINDINGS"} f{print > f} /^END/' \
42 ${pkgdir}/usr/share/doc/${_pkgname}/INSTALL
43 rm ${pkgdir}/usr/share/doc/${_pkgname}/INSTALL