summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4119f889c759d24a59e8bab1306bf6afaa99231f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Lubosz Sarnecki <lubosz ! gmail ! com>
# Arch Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: pressh <pressh@gmail.com>

pkgname=alacarte-git
pkgver=3.11.91+27+g3614c2c
pkgrel=1
pkgdesc="Menu editor for gnome. Git version using Python 3."
arch=(any)
license=('LGPL')
url="https://www.gnome.org"
depends=('gnome-menus' 'python-gobject' 'gtk3')
makedepends=('intltool' 'libxslt' 'docbook-xsl' 'git' 'gnome-common')
provides=("alacarte="$pkgver)
replaces=("alacarte")
conflicts=("alacarte")
source=('git+https://gitlab.gnome.org/GNOME/alacarte.git')
sha256sums=('SKIP')

pkgver() {
  cd alacarte
  git describe --long | sed 's/-/+/g'
}

build() {
  cd alacarte
  NOCONFIGURE=1 ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var PYTHON=/usr/bin/python3
  make
}

package() {
  cd alacarte
  make DESTDIR="$pkgdir" install
  python3 -m compileall "$pkgdir"/usr/lib/python3.8/site-packages/Alacarte/
}