🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536
pkgname: gtksourceview
pkgver: '3.24.11'
pkgrel: '6'
pkgdesc: 'Syntax highlighting for the GtkTextView widget'
url: 'http://mail.gnome.org/mailman/listinfo/gnome-devtools'
arch: x86_64
depends: []
makedepends:
- gtk3
- libxml2
source:
- 'https://download.gnome.org/sources/gtksourceview/3.24/${pkgname}-${pkgver}.tar.xz'
sha256sums:
- SKIP
build: |
cd ${pkgname}-${pkgver}
sed -i 's/g_object_ref (buffer)/g_object_ref (GTK_SOURCE_BUFFER (buffer))/' gtksourceview/gtksourceview.c
./configure --prefix=/usr
make
make DESTDIR="${PKGDIR}" install
package: |
# Obsolet lib
rm -f ${PKGDIR}/usr/lib/libgtksourceview-3.0.la
update: |
local latest lastversion url
url="https://download.gnome.org/sources/${pkgname}"
latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$url/?C=N\;O=D|grep [0-9]/$|head -1`"
lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
echo "$lastversion"