updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sakura-my-patches / PKGBUILD
blob11e49441a2f45719a0409e1ee5ee5b74785f6f41
1 # Contributor: silasb <silas.baronda@gmail.com>
3 pkgname=sakura-my-patches
4 _pkgname=sakura
5 pkgver=2.3.8
6 pkgrel=1
7 pkgdesc="A terminal emulator based on GTK and VTE that allows you to double click to create a new terminal."
8 arch=('i686' 'x86_64')
9 url="http://pleyades.net/david/sakura.php"
10 license=('GPL')
11 depends=('vte' 'libxft' 'desktop-file-utils')
12 makedepends=('cmake')
13 provides=('sakura')
14 conflicts=('sakura')
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')
21 build() {
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
29    
30   # build & install     
31   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . || return 1
32   make || return 1
35 package() {
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