summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 503338bfcc67d9caf266cb7335dbe67b116d1285 (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
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>

pkgname=dyncall-git
pkgver=20151201
pkgrel=1
pkgdesc="Generic Dynamic FFI package"
arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64')
makedepends=('cmake' 'git' 'make' 'yasm')
url="https://github.com/MoarVM/dyncall"
license=('custom')
source=(git+https://github.com/MoarVM/dyncall)
sha256sums=('SKIP')
provides=('dyncall')
conflicts=('dyncall')

pkgver() {
  cd ${pkgname%-git}
  git log -1 --format="%cd" --date=short --no-show-signature | sed "s|-||g"
}

build() {
  cd ${pkgname%-git}

  msg2 'Building...'
  cmake -DCMAKE_INSTALL_PREFIX=/usr ./
  make
}

package() {
  cd ${pkgname%-git}

  msg2 'Installing license...'
  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"

  msg2 'Installing...'
  make DESTDIR="$pkgdir" install
}