diff options
author | Evan Pitstick | 2015-07-07 20:07:54 -0400 |
---|---|---|
committer | Evan Pitstick | 2015-07-07 20:07:54 -0400 |
commit | 28fdb9b3bde6251f4e641159eec2c5d5b1e65d68 (patch) | |
tree | fb49d1f4662a3cd89d59f63c8a495c302572983d /PKGBUILD | |
download | aur-sakura-bzr.tar.gz |
init commit for aur4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..81881c3ff7c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Evan Pitstick <nerdx00 NOSPAM gmail DOT com> +# Based on: https://www.archlinux.org/packages/community/x86_64/sakura/ + +pkgname=sakura-bzr +_name=sakura +pkgver=492 +pkgrel=1 +pkgdesc="A terminal emulator based on GTK and VTE" +arch=('i686' 'x86_64') +url="https://launchpad.net/sakura" +license=('GPL') +depends=('vte290' 'libxft' 'desktop-file-utils') +makedepends=('cmake' 'bzr') +provides=('sakura') +conflicts=('sakura') +install=${pkgname}.install +source=( + "${pkgname}::bzr+https://launchpad.net/${_name}/trunk" +) +sha256sums=( + 'SKIP' +) + +pkgver() { + + cd ${srcdir}/${pkgname} + bzr revno + +} + +prepare() { + + cd ${srcdir}/${pkgname} + + # Set default font to something more generic + sed -i 's|#define DEFAULT_FONT "Ubuntu Mono,monospace 13"|#define DEFAULT_FONT "Monospace 10"|g' \ + src/sakura.c + +} + +build() { + + cd ${srcdir}/${pkgname} + + # build & install + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make + +} + +package() { + + cd ${srcdir}/${pkgname} + + 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/'${_name}'/KEYBINDINGS"} f{print > f} /^END/' \ + ${pkgdir}/usr/share/doc/${_name}/INSTALL + rm ${pkgdir}/usr/share/doc/${_name}/INSTALL + +} + +# vim: ts=4 sts=4 sw=4 noet |