summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed58c74ef6a687cd39836f6ef6543423280762eb (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
37
38
39
40
41
42
# Maintainer: Srevin Saju <srevinsaju@sugarlabs.org>

pkgname=sugar-runner-git
pkgver=v0.110.0.2.g6eebec3
pkgrel=3
pkgdesc="Scripts to run Sugar"
arch=('x86_64')
url="https://sugarlabs.org/"
license=('GPL')
depends=('sugar-git' 'xorg-xinit' 'xorg-server-xephyr' 'xorg-xrandr')
makedepends=('gobject-introspection')
source=("git+https://github.com/sugarlabs/sugar-runner.git"
        0001-Python-3-port.patch)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
sha256sums=('SKIP'
            'SKIP')


prepare() {
  cd "$srcdir/${pkgname%-git}"

  # https://github.com/sugarlabs/sugar-runner/pull/5
  patch -Np1 -i ../0001-Python-3-port.patch

  # Fix launch from the application menu
  echo 'Terminal=true' >>data/sugar-runner.desktop
}


build() {
  cd "$srcdir/${pkgname%-git}"
  chmod +x ./autogen.sh
  ./autogen.sh --prefix=/usr --with-python3
  make
}


package() {
  cd "$srcdir/${pkgname%-git}"
  make DESTDIR="$pkgdir" install
}