[arch-commits] Commit in alacarte/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Mar 8 07:30:53 UTC 2020


    Date: Sunday, March 8, 2020 @ 07:30:51
  Author: heftig
Revision: 377079

3.36.0+0+g7b5fc64-1

Modified:
  alacarte/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-08 07:29:16 UTC (rev 377078)
+++ PKGBUILD	2020-03-08 07:30:51 UTC (rev 377079)
@@ -2,15 +2,16 @@
 # Contributor: pressh <pressh at gmail.com>
 
 pkgname=alacarte
-pkgver=3.11.91+12+g1bb265f
-pkgrel=3
+pkgver=3.36.0+0+g7b5fc64
+pkgrel=1
 pkgdesc="Menu editor for gnome"
+url="https://gitlab.gnome.org/GNOME/alacarte"
 arch=(any)
-license=('LGPL')
-url="https://www.gnome.org"
-depends=('gnome-menus' 'hicolor-icon-theme' 'python2-gobject' 'gtk3')
-makedepends=('intltool' 'libxslt' 'docbook-xsl' 'git' 'gnome-common')
-source=('git+https://gitlab.gnome.org/GNOME/alacarte.git#commit=1bb265f7')
+license=(LGPL)
+depends=(gnome-menus python-gobject gtk3)
+makedepends=(intltool libxslt docbook-xsl git gnome-common python2)
+_commit=7b5fc64998833c2098ea36717da745d8d6152897  # tags/3.36.0^0
+source=("git+https://gitlab.gnome.org/GNOME/alacarte.git#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
@@ -18,10 +19,14 @@
   git describe --long | sed 's/-/+/g'
 }
 
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var PYTHON=/usr/bin/python2
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
   make
 }
 
@@ -28,5 +33,7 @@
 package() {
   cd $pkgname
   make DESTDIR="$pkgdir" install
-  python2 -m compileall "$pkgdir"/usr/lib/python2.7/site-packages/Alacarte/
+
+  python -m compileall -d /usr "$pkgdir/usr"
+  python -O -m compileall -d /usr "$pkgdir/usr"
 }



More information about the arch-commits mailing list