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

pkgname=libffi-git
pkgver=3.2.1.r334.g4fdbb05
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')
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" "$pkgdir/usr/share/licenses/libffi/LICENSE"
}