Date: Friday, April 13, 2018 @ 21:22:02 Author: heftig Revision: 321691
3.26.0-1: FS#58215 Modified: gitg/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-04-13 20:31:13 UTC (rev 321690) +++ PKGBUILD 2018-04-13 21:22:02 UTC (rev 321691) @@ -2,8 +2,9 @@ # Maintainer: Eric BĂ©langer <e...@archlinux.org> pkgname=gitg -pkgver=3.26+23+g9c785938 +pkgver=3.26.0 pkgrel=1 +epoch=1 pkgdesc='A GIT repository viewer based on GTK+' arch=('x86_64') url='https://git.gnome.org/browse/gitg/' @@ -10,36 +11,25 @@ license=('GPL') depends=('gtksourceview3' 'git' 'desktop-file-utils' 'libgit2-glib' 'libgee' 'webkit2gtk' 'libpeas' 'gtkspell3' 'python-gobject') -makedepends=('intltool' 'vala' 'gobject-introspection' 'glade' 'git' 'meson' 'gtk-doc') -groups=('gnome-extra') -_commit=9c7859381b8eb5f0e8c00bca120802148ea3bc8e # master -source=("git+https://git.gnome.org/browse/gitg#commit=$_commit") -sha256sums=('SKIP') +makedepends=('intltool' 'gobject-introspection' 'gnome-common') +source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz") +sha256sums=('26730d437d6a30d6e341b9e8da99d2134dce4b96022c195609f45062f82b54d5') -pkgver() { - cd $pkgname - git describe --tags | sed 's/^v//;s/-/+/g' -} +# Don't convert back to Git sources until compilation with current Vala is fixed (FS#58215) prepare() { - cd $pkgname + cd $pkgname-$pkgver } build() { - arch-meson $pkgname build -D docs=true - ninja -C build + cd $pkgname-$pkgver + ./configure --prefix=/usr + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + make } package() { - DESTDIR="$pkgdir" ninja -C build install - - # Fix up icon names - local f d - for f in "$pkgdir"/usr/share/icons/hicolor/*/apps/*; do - d="${f%/*}" - mv "$f" "$d/${f##*_}" - done - - python -m compileall "$pkgdir/usr/lib/python3.6" - python -O -m compileall "$pkgdir/usr/lib/python3.6" + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + mv "$pkgdir"/usr/share/{appdata,metainfo} }