blob: 1e12938e2324f69e74ece30d164a080e275b4e6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
pkgname=topinambour-git
pkgver=2.0.4.r68.g437f5ff
pkgrel=2
pkgdesc="vte terminal based on the ruby-gtk3 bindings"
arch=('i686' 'x86_64')
url="https://github.com/cedlemo/topinambour"
license=('GPL')
depends=('zsh' 'ruby' 'ruby-gtk3' 'ruby-vte3')
makedepends=('git' 'ruby-rake')
source=('git+https://github.com/cedlemo/topinambour' 'topinambour-git.desktop')
sha256sums=('SKIP'
'd02e118197802a75c30c83fa687361d1303f47446bbbf12f918c00302ff60db1')
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)"
)
}
prepare() {
cd "${srcdir}/topinambour"
sed -r 's|~>|>=|g' -i topinambour.gemspec
}
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
install -Dm644 "data/topinambour.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas/topinambour.gschema.xml"
install -Dm644 "../$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|