1 # Contributor: silasb <silas.baronda@gmail.com>
3 pkgname=sakura-my-patches
7 pkgdesc="A terminal emulator based on GTK and VTE that allows you to double click to create a new terminal."
9 url="http://pleyades.net/david/sakura.php"
11 depends=('vte' 'libxft' 'desktop-file-utils')
15 source=(http://pleyades.net/david/projects/$_pkgname/$_pkgname-$pkgver.tar.bz2 \
16 dbl_click_new_tab.patch)
18 install=sakura.install
19 md5sums=('5ce4c9498ea5eb909dbd03617087202e'
20 'b92f2dac771930bdab2472aab377a752')
22 cd $srcdir/${_pkgname}-${pkgver}
24 # Set default font size a bit smaller
25 sed -i 's|#define DEFAULT_FONT "Bitstream Vera Sans Mono 14"|#define DEFAULT_FONT "Bitstream Vera Sans Mono 10"|g' src/sakura.c
27 # Disable "really close question"
28 patch -Np0 -i ${srcdir}/dbl_click_new_tab.patch || return 1
31 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . || return 1
36 cd $srcdir/${_pkgname}-${pkgver}
38 make DESTDIR=${pkgdir} install || return 1
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