# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Ronald van Haren # Contributor: Dmitry N. Shilov pkgname=sakura pkgver=2.3.4 pkgrel=1 pkgdesc="A terminal emulator based on GTK and VTE" arch=('i686' 'x86_64') url="http://pleyades.net/david/sakura.php" license=('GPL') depends=('vte' 'libxft' 'desktop-file-utils') makedepends=('cmake') source=(http://pleyades.net/david/projects/$pkgname/$pkgname-$pkgver.tar.bz2 \ blinkingcursor.patch) install=sakura.install md5sums=('f77ff5a4d23e049baa8b8ce7b1fe72e0' '0cfb0200a194a664afa67e240fc80cba') build() { cd $srcdir/${pkgname}-${pkgver} # Set default font size a bit smaller sed -i 's|#define DEFAULT_FONT "Bitstream Vera Sans Mono 14"|#define DEFAULT_FONT "Bitstream Vera Sans Mono 10"|g' src/sakura.c # Disable blinking cursor patch -Np0 -i ${srcdir}/blinkingcursor.patch || return 1 # build & install cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . || return 1 make || return 1 make DESTDIR=${pkgdir} install || return 1 # extract the keybindings from the installed documentation, rest is only relevant during build time awk '/^Keybindings/{f="'${pkgdir}'/usr/share/doc/'${pkgname}'/KEYBINDINGS"} f{print > f} /^END/' \ ${pkgdir}/usr/share/doc/${pkgname}/INSTALL rm ${pkgdir}/usr/share/doc/${pkgname}/INSTALL }