aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bashford <ianbashford@gmail.com>2019-11-20 22:15:48 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-11-24 18:12:52 +0100
commit0df8a77e9243224731d11625cc0f36069d861055 (patch)
treecf295bee23d94f23d32c7170d43f5d95f1eebe24
parent248515a5783ea4d241a703250118b249f8fbc1e4 (diff)
downloadaports-0df8a77e9243224731d11625cc0f36069d861055.tar.bz2
aports-0df8a77e9243224731d11625cc0f36069d861055.tar.xz
testing/termite new aport
Termite: A simple VTE-based terminal https://github.com/thestinger/termite/
-rw-r--r--testing/termite/APKBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/testing/termite/APKBUILD b/testing/termite/APKBUILD
new file mode 100644
index 0000000000..ee63726848
--- /dev/null
+++ b/testing/termite/APKBUILD
@@ -0,0 +1,69 @@
+# Contributor: Ian Bashford <ianbashford@gmail.com>
+# Maintainer: Ian Bashford <ianbashford@gmail.com>
+pkgname=termite
+pkgver=15
+pkgrel=0
+_vtever=0.50.2-ng
+_util_commit=409b8449ab51fccf51057621168c9c15c54d4807
+pkgdesc="A simple VTE-based terminal"
+url="https://github.com/thestinger/termite/"
+arch="all"
+options="!check" # No test suite.
+license="LGPL-2.1-or-later AND MIT"
+depends="$pkgname-terminfo"
+makedepends="intltool libtool automake autoconf gtk-doc gtk+3.0-dev
+ glib-dev pcre2-dev gnutls-dev gperf ncurses "
+subpackages="$pkgname-doc $pkgname-terminfo::noarch"
+source="$pkgname-$pkgver.tar.gz::https://github.com/thestinger/termite/archive/v$pkgver.tar.gz
+ vte-ng-$_vtever.tar.gz::https://github.com/thestinger/vte-ng/archive/$_vtever.tar.gz
+ util-$_util_commit.tar.gz::https://github.com/thestinger/util/archive/$_util_commit.tar.gz
+ "
+
+unpack() {
+ default_unpack
+ cd "$pkgname-$pkgver"
+ rmdir util
+ mv "$srcdir"/util-${_util_commit} util
+ cd "$srcdir/vte-ng-$_vtever"
+ echo 'sources: $(BUILT_SOURCES)' >> src/Makefile.am
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd "$srcdir/vte-ng-$_vtever"
+ ./configure \
+ --prefix="$srcdir/vte-static" \
+ --localedir="/usr/share/$pkgname/locale" \
+ --enable-static \
+ --disable-shared \
+ enable_introspection=no \
+ enable_vala=no \
+ --disable-gtk-doc \
+ --disable-glade-catalogue
+ make -C src sources install-exec install-data -j 1
+ make install-pkgconfigDATA
+ cd "$builddir"
+ export PKG_CONFIG_PATH="$srcdir/vte-static/lib/pkgconfig"
+ make
+}
+
+package() {
+ cd "$srcdir"
+ make -C "$srcdir/vte-ng-$_vtever"/po DESTDIR="$pkgdir" install-data
+ make -C "$builddir" DESTDIR="$pkgdir" PREFIX=/usr install
+ rm -r "$pkgdir/usr/share/terminfo"
+ cd "$srcdir"
+ pkgdesc="$pkgdesc (terminfo data)"
+ mkdir -p "$pkgdir/usr/share/terminfo"
+ /usr/bin/tic -x -o "$pkgdir/usr/share/terminfo" "$srcdir/$pkgname-$pkgver/termite.terminfo"
+}
+
+terminfo() {
+ install -d "$subpkgdir"/usr/share/terminfo
+ mv -v "$pkgdir"/usr/share/terminfo/* \
+ "$subpkgdir"/usr/share/terminfo/
+}
+
+sha512sums="1c224af85c35c4b755a150c0c701ddfd5414b382bd78853fb89730a6806ed1c54820987285541ecba0865a35f3b24e9ced88fcc888c43435e60c5d7296b2b0f6 termite-15.tar.gz
+9c7e8f7ebbd6564c1aab8f9569d5ad8e1032c3548b3879dde6329a6bc678f466a7105d8ace45dfc36d9070ed3330480992d9c36ca860a0b5f5c3813fdd4df231 vte-ng-0.50.2-ng.tar.gz
+10e13271a0661b0f25e5c198bd40c3e79bb425cc6ea0f4a73d4c90152ee09490b01d737bb1d2633d6574888c46ac0b1396742f444606f081ede4c289f8151c00 util-409b8449ab51fccf51057621168c9c15c54d4807.tar.gz"