summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eeab65d1f902d0933b1cf55530e25e6cc75c2545 (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: houkime <houkime@protonmail.com>

pkgname=guile-opengl-git
pkgver=0.1.0.r4.g687e96b
pkgrel=1
pkgdesc='OpenGL bindings for Guile Scheme'
arch=(x86_64 i686)
license=(LGPL3)
depends=('guile>=2.1.4')
provides=('guile-opengl')
conflicts=('guile-opengl')
url=https://www.gnu.org/software/guile-opengl/
source=("${pkgname}"'::git+https://git.savannah.gnu.org/git/guile-opengl.git')
md5sums=('SKIP')

pkgver(){
  cd "$srcdir/$pkgname"
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build(){
  cd "$srcdir/$pkgname"
  autoreconf -vif
  ./configure --prefix=/usr
  make
}

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