diff options
author | Vincent Grande | 2021-01-08 23:52:30 -0500 |
---|---|---|
committer | Vincent Grande | 2021-01-08 23:52:30 -0500 |
commit | f0a2ba06dc891f308a8a5cfc58bc6a843e0a3296 (patch) | |
tree | 31af3d317f630b402495a13cafb67624da2557e9 | |
download | aur-f0a2ba06dc891f308a8a5cfc58bc6a843e0a3296.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d58bbdc505d8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = lib32-libffi-minimal-git + pkgdesc = A portable, high level programming interface to various calling conventions (32-bit) + pkgver = 3.3 + pkgrel = 1 + url = https://sourceware.org/libffi/ + arch = x86_64 + license = MIT + depends = lib32-glibc + depends = libffi + provides = lib32-libffi + conflicts = lib32-libffi + source = git+https://github.com/libffi/libffi.git + sha512sums = SKIP + +pkgname = lib32-libffi-minimal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f60dd42e7b63 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Vincent Grande <shoober420@gmail.com> +# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net> +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgname=lib32-libffi-minimal-git +pkgver=3.3 +pkgrel=1 +pkgdesc="A portable, high level programming interface to various calling conventions (32-bit)" +arch=('x86_64') +license=('MIT') +url="https://sourceware.org/libffi/" +depends=('lib32-glibc' 'libffi') +provides=(lib32-libffi) +conflicts=(lib32-libffi) +#checkdepends=('dejagnu') +source=("git+https://github.com/libffi/libffi.git") +sha512sums=('SKIP') + +pkgver() { + cd "libffi" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd libffi + + export CC="gcc -m32" + + ./autogen.sh + ./configure --prefix=/usr \ + --libdir=/usr/lib32 --libexecdir=/usr/lib32 \ + --disable-static --enable-pax_emutramp --disable-docs --disable-debug + + make +} + +#check() { +# make -C libffi check +#} + +package() { + cd libffi + + make DESTDIR="${pkgdir}" install + + rm -r "${pkgdir}"/usr/{include,share} + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" +} |