[arch-commits] Commit in tepl/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sat Sep 26 20:28:38 UTC 2020
Date: Saturday, September 26, 2020 @ 20:28:38
Author: heftig
Revision: 396610
5.0.0-1
Modified:
tepl/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++--------------
1 file changed, 31 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-26 20:22:06 UTC (rev 396609)
+++ PKGBUILD 2020-09-26 20:28:38 UTC (rev 396610)
@@ -1,27 +1,44 @@
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Tobias Bohrmann (PlainTextField) <honeypot.carbage at aechelon.de>
pkgname=tepl
-pkgver=4.4.0
+pkgver=5.0.0
pkgrel=1
pkgdesc="Library that eases the development of GtkSourceView-based text editors and IDEs"
+url="https://wiki.gnome.org/Projects/Tepl"
arch=(x86_64)
-url="https://wiki.gnome.org/Projects/Tepl"
-license=(LGPL2.1)
+license=(LGPL3)
depends=(amtk gtksourceview4 uchardet)
-makedepends=(gobject-introspection gtk-doc vala)
-provides=(libtepl-${pkgver%%.*}.so)
-source=("https://download.gnome.org/sources/tepl/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
-sha256sums=('e6f6673a8a27e8f280725db8fbacec79b20676ae0558755239d15a9808faa256')
+makedepends=(gobject-introspection gtk-doc vala git meson)
+checkdepends=(xorg-server-xvfb)
+_commit=f4ae2490512ab7405f1363a90712b7023f5e9d45 # tags/5.0.0^0
+source=("git+https://gitlab.gnome.org/GNOME/tepl.git#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+}
+
build() {
- cd $pkgname-$pkgver
- ./configure --prefix=/usr
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
- make
+ arch-meson $pkgname build -D gtk_doc=true
+ meson compile -C build
}
+check() {
+ xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
+ meson test -C build --print-errorlogs
+}
+
package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ depends+=(libg{lib,object,io}-2.0.so libg{d,t}k-3.so libamtk-5.so
+ libgtksourceview-4.so)
+ provides+=("libtepl-${pkgver%%.*}.so")
+
+ DESTDIR="$pkgdir" meson install -C build
}
More information about the arch-commits
mailing list