[arch-commits] Commit in termite/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sat Jan 6 11:02:42 UTC 2018
Date: Saturday, January 6, 2018 @ 11:02:41
Author: heftig
Revision: 279456
13-2: Integrate vte-ng statically
Modified:
termite/trunk/PKGBUILD
----------+
PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 47 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-06 09:58:30 UTC (rev 279455)
+++ PKGBUILD 2018-01-06 11:02:41 UTC (rev 279456)
@@ -1,37 +1,67 @@
# $Id$
-# Maintainer: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+pkgbase=termite
pkgname=('termite' 'termite-terminfo')
pkgver=13
-pkgrel=1
-arch=('x86_64')
+pkgrel=2
+pkgdesc="A simple VTE-based terminal"
url="https://github.com/thestinger/termite/"
license=('LGPL')
-makedepends=('git' 'vte3-ng' 'ncurses')
-source=("git+https://github.com/thestinger/termite#tag=v$pkgver")
-md5sums=('SKIP')
+arch=('x86_64')
+depends=('gtk3' 'pcre2' 'gnutls' 'vte-common')
+makedepends=('git' 'ncurses' 'intltool' 'gperf' 'gtk-doc')
+_vtever=0.50.2.a
+source=("git+https://github.com/thestinger/termite#tag=v$pkgver"
+ "git+https://github.com/thestinger/vte-ng#tag=$_vtever"
+ "termite-util::git+https://github.com/thestinger/util")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+prepare() {
+ cd vte-ng
+ echo 'sources: $(BUILT_SOURCES)' >> src/Makefile.am
+ NOCONFIGURE=1 ./autogen.sh
+
+ cd ../$pkgbase
+ git submodule init
+ git config --local submodule.util.url "$srcdir/termite-util"
+ git submodule update
+}
+
build() {
- cd $pkgbase
- git submodule update --init
+ cd vte-ng
+ ./configure \
+ --prefix="$srcdir/vte-static" \
+ --localedir="/usr/share/$pkgbase/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
+ make install-pkgconfigDATA
+
+ cd ../$pkgbase
+ export PKG_CONFIG_PATH="$srcdir/vte-static/lib/pkgconfig"
make
}
package_termite() {
- pkgdesc="A simple VTE-based terminal"
- depends=('vte3-ng' 'termite-terminfo')
+ depends+=('termite-terminfo')
backup=(etc/xdg/termite/config)
- cd $pkgbase
- make PREFIX=/usr DESTDIR="$pkgdir" install
- rm -rf "$pkgdir/usr/share/terminfo"
- install -Dm644 config "$pkgdir/etc/xdg/termite/config"
+ make -C vte-ng/po DESTDIR="$pkgdir" install-data
+ make -C $pkgbase DESTDIR="$pkgdir" PREFIX=/usr install
+ rm -r "$pkgdir/usr/share/terminfo"
}
package_termite-terminfo() {
pkgdesc='Terminfo for Termite, a simple VTE-based terminal'
+ depends=('ncurses')
- cd $pkgbase
- install -d "$pkgdir/usr/share/terminfo"
- tic -x termite.terminfo -o "$pkgdir/usr/share/terminfo"
+ mkdir -p "$pkgdir/usr/share/terminfo"
+ tic -x -o "$pkgdir/usr/share/terminfo" $pkgbase/termite.terminfo
}
More information about the arch-commits
mailing list