diff options
author | Andrew Sun | 2018-08-08 16:11:13 -0400 |
---|---|---|
committer | Andrew Sun | 2018-08-08 16:11:13 -0400 |
commit | 26c3317a44ed63f55bfa734be5c3999575e2b221 (patch) | |
tree | 4f7c4ca534615b365c7fc735e2d74062ff22d7d2 | |
download | aur-26c3317a44ed63f55bfa734be5c3999575e2b221.tar.gz |
add mingw-w64-ffcall (version 2.1)
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..306979d714e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-ffcall + pkgdesc = C library for implementing foreign function calls in embedded interpreters (mingw-w64) + pkgver = 2.1 + pkgrel = 1 + url = http://www.gnu.org/software/libffcall/ + arch = any + license = GPL2 + makedepends = mingw-w64-configure + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = !makeflags + options = staticlibs + source = https://ftp.gnu.org/gnu/libffcall/libffcall-2.1.tar.gz + sha256sums = a091fb8bbabf17c94a2dae2d41161b96a08ab92b5f75d3364157a2c34d538c47 + +pkgname = mingw-w64-ffcall + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..44ab5f99bfab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Andrew Sun <adsun701@gmail.com> + +pkgname=mingw-w64-ffcall +_pkgname=ffcall +pkgver=2.1 +pkgrel=1 +pkgdesc="C library for implementing foreign function calls in embedded interpreters (mingw-w64)" +arch=('any') +url="http://www.gnu.org/software/libffcall/" +license=('GPL2') +makedepends=('mingw-w64-configure') +depends=('mingw-w64-crt') +options=('!strip' '!buildflags' '!makeflags' 'staticlibs') +source=("https://ftp.gnu.org/gnu/libffcall/lib${_pkgname}-${pkgver}.tar.gz") +sha256sums=('a091fb8bbabf17c94a2dae2d41161b96a08ab92b5f75d3364157a2c34d538c47') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/lib${_pkgname}-${pkgver}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/lib${_pkgname}-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |