aboutsummaryrefslogtreecommitdiff
path: root/gtksourceview4/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'gtksourceview4/Pkgfile')
-rw-r--r--gtksourceview4/Pkgfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/gtksourceview4/Pkgfile b/gtksourceview4/Pkgfile
new file mode 100644
index 0000000..1932cbf
--- /dev/null
+++ b/gtksourceview4/Pkgfile
@@ -0,0 +1,27 @@
+# Description: A text widget adding syntax highlighting.
+# URL: https://gnome.org
+# Maintainer: mac-a-r0ni, j at lngn dot net
+# Depends on: glade gtk-doc
+# Optional: vala
+
+name=gtksourceview4
+version=4.8.4
+release=3
+source=(https://download.gnome.org/sources/gtksourceview/4.8/gtksourceview-$version.tar.xz)
+
+build() {
+ prt-get isinst vala && PKGMK_GTKSV+=' -Dvapi=true' || PKGMK_GTKSV+=' -Dvapi=false'
+ mv gtksourceview-$version $name-$version
+
+ meson setup $name-$version build $PKGMK_GTKSV \
+ --prefix=/usr \
+ --buildtype=plain \
+ -Dgir=true \
+ -Db_lto=true \
+ -Db_pie=true
+
+ meson compile -C build
+ DESTDIR=$PKG meson install -C build
+
+ rm -rf $PKG/usr/share/locale
+}