summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..58c22a1ebfe5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+pkgname=topinambour-git
+pkgver=1.0.11.r25.gf763f66
+pkgrel=1
+pkgdesc="vte terminal based on the ruby-gtk3 bindings"
+arch=('i686' 'x86_64')
+url="https://github.com/cedlemo/topinambour"
+license=('GPL')
+depends=('fish' 'ruby' 'ruby-gtk3' 'ruby-vte3')
+makedepends=('git')
+source=('git://github.com/cedlemo/topinambour')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "topinambour"
+ ( set -o pipefail
+ git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+build() {
+ cd "${srcdir}/topinambour"
+ gem build topinambour.gemspec
+
+}
+package() {
+ cd "${srcdir}/topinambour"
+ gem install --no-user-install --ignore-dependencies \
+ -i "${pkgdir}$(ruby -e 'puts Gem.default_dir')" \
+ -n "${pkgdir}/usr/bin" \
+ topinambour-*.gem
+mkdir -p "${pkgdir}/usr/share/glib-2.0/schemas"
+install -m644 "data/topinambour.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas"
+}