summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f03e91f0f93b9942a95993f5255b9419afff4ec5 (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
# Maintainer: Srevin Saju <srevinsaju@sugarlabs.org>

pkgname=sugar-datastore-git
pkgver=v0.118
pkgrel=1
pkgdesc="Sugar datastore service"
arch=('x86_64')
url="https://sugarlabs.org/"
license=('GPL')
depends=('python-dbus' 'python-gobject' 'python-xapian')
source=("git+https://github.com/sugarlabs/sugar-datastore.git")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/${pkgname%-git}"
  # d -i 's@^#!.*python$@#!/usr/bin/python2@' bin/copy-to-journal
}

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
}