summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 047ff0a860190fad890d8c71bcafd0ec84fd93d0 (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
# Maintainer:  <zhaose@Planet>
pkgname=guile-gi-git
pkgver=1223.ea5d051
pkgrel=1
pkgdesc="Bindings for GObject Introspection and libgirepository for Guile"
arch=('x86_64')
url="https://github.com/spk121/guile-gi"
license=('GPL3')
depends=('guile' 'gobject-introspection-runtime')
makedepends=('git' 'gobject-introspection')
source=("${pkgname}::git+https://github.com/spk121/guile-gi.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"

  ./bootstrap

  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/$pkgname"

  make -k check || :
}

package() {
  cd "$srcdir/$pkgname"

  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: