diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/sakura |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/sakura')
-rw-r--r-- | community/sakura/PKGBUILD | 38 | ||||
-rw-r--r-- | community/sakura/sakura.install | 12 |
2 files changed, 50 insertions, 0 deletions
diff --git a/community/sakura/PKGBUILD b/community/sakura/PKGBUILD new file mode 100644 index 000000000..d9fc4a723 --- /dev/null +++ b/community/sakura/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 40517 2011-02-25 08:55:44Z rvanharen $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Dmitry N. Shilov <stormblast@land.ru> + +pkgname=sakura +pkgver=2.4.0 +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) +install=sakura.install +sha1sums=('417508be2551ff82e6bad8868832ef634479a432') + +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 + + # build & install + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . + make +} + +package() { + cd $srcdir/${pkgname}-${pkgver} + + 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/'${pkgname}'/KEYBINDINGS"} f{print > f} /^END/' \ + ${pkgdir}/usr/share/doc/${pkgname}/INSTALL + rm ${pkgdir}/usr/share/doc/${pkgname}/INSTALL +} + diff --git a/community/sakura/sakura.install b/community/sakura/sakura.install new file mode 100644 index 000000000..7463b6e76 --- /dev/null +++ b/community/sakura/sakura.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update-desktop-database -q +} + |