summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52d735e802079f0f3a67452d92bb271afcff861d (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
43
44
45
46
47
48
49
# Maintainer: VanLaser <gabi_laser at yahoo dot com>

pkgname=c2ffi-git
pkgver=r183.7371b79
pkgrel=1
pkgdesc="Clang-based FFI wrapper generator"
arch=('x86_64' 'aarch64')
url="https://github.com/rpav/c2ffi"
license=('GPL2')
depends=('clang'
         'llvm'
         'libffi'
         'libedit'
         'zlib'
         'glibc'
         'ncurses'
         'libxml2'
         'icu'
         'xz')
makedepends=('git'
             'make'
             'cmake'
             'gcc')
provides=('c2ffi')
conflicts=('c2ffi')
source=('git+https://github.com/rpav/c2ffi#branch=llvm-10.0.0')
md5sums=('SKIP')

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

_gitroot=GITURL
_gitname=MODENAME

build() {
  cd c2ffi
  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd c2ffi
  make DESTDIR="$pkgdir/" install
  #install -Dm755 c2ffi/bin/c2ffi "$pkgdir/usr/bin/c2ffi"
}

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