[arch-commits] Commit in sugar-toolkit-gtk3/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Sun Mar 15 18:59:04 UTC 2020


    Date: Sunday, March 15, 2020 @ 18:59:03
  Author: bgyorgy
Revision: 598421

upgpkg: sugar-toolkit-gtk3 0.116+16+g72d36cc9-1: Fix python3 port

Modified:
  sugar-toolkit-gtk3/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-15 18:39:12 UTC (rev 598420)
+++ PKGBUILD	2020-03-15 18:59:03 UTC (rev 598421)
@@ -1,7 +1,7 @@
 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
 
 pkgname=sugar-toolkit-gtk3
-pkgver=0.116
+pkgver=0.116+16+g72d36cc9
 pkgrel=1
 pkgdesc="Sugar GTK library"
 arch=('x86_64')
@@ -9,13 +9,24 @@
 license=('LGPL')
 depends=('alsa-lib' 'gtk3' 'libsm' 'python-cairo' 'python-dateutil' 'python-decorator'
          'python-six' 'sugar-artwork' 'sugar-datastore' 'telepathy-mission-control' 'unzip')
-makedepends=('intltool' 'gobject-introspection')
+makedepends=('intltool' 'gobject-introspection' git gnome-common)
 optdepends=('webkit2gtk: run sugar-activity-web')
-source=(https://download.sugarlabs.org/sources/sucrose/glucose/$pkgname/$pkgname-$pkgver.tar.xz)
-sha256sums=('745a360577efceb10f57ca4cbad5f9ec61f7ed6cc381eeb72422bbd7455b770b')
+_commit=72d36cc964de54403af5257c2b2da81c1e83326e  # master
+source=("git+https://github.com/sugarlabs/sugar-toolkit-gtk3.git#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   # Disable hardened build until fixed upstream
   # https://bugs.sugarlabs.org/ticket/4886
   export CFLAGS=${CFLAGS/ -fno-plt}
@@ -27,7 +38,7 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
   rm "$pkgdir/usr/bin/sugar-activity"
 }



More information about the arch-commits mailing list