summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8909a25c7aa986368dc713556c233ea50cddad6f (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
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libffi-minimal-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 --disable-docs --disable-debug
  make
}

#check() {
#  cd "libffi"

#  make check
#}

package() {
  cd "libffi"

  make DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/libffi/LICENSE"
}