summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c3357773fdbc00e453c46da41521026634182b4 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libffi-git
pkgver=3.4.4.r27.gac598b7f
pkgrel=1
pkgdesc="Portable foreign function interface library"
arch=('i686' 'x86_64')
url="https://sourceware.org/libffi/"
license=('MIT')
depends=('glibc')
makedepends=('git')
checkdepends=('dejagnu')
provides=("libffi=$pkgver" 'libffi.so')
conflicts=('libffi')
options=('staticlibs')
source=("git+https://github.com/libffi/libffi.git")
sha256sums=('SKIP')


pkgver() {
  cd "libffi"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libffi"

  ./autogen.sh
  ./configure \
    --prefix="/usr" \
    --enable-pax_emutramp
  make
}

check() {
  cd "libffi"

  #make check
}

package() {
  cd "libffi"

  make DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libffi"
  install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/libffi"
}