diff options
author | Jack O'Sullivan | 2018-09-02 11:22:23 +0100 |
---|---|---|
committer | Jack O'Sullivan | 2018-09-02 11:22:23 +0100 |
commit | 135d761006ece7461b3488d9d0777903cbcc3a51 (patch) | |
tree | b99d221a34e13e8b78e5afd08058b2741d11d43a | |
download | aur-135d761006ece7461b3488d9d0777903cbcc3a51.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6868498dc6c7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = mingw-w64-portablexdr + pkgdesc = external data representation (XDR) library + pkgver = 4.9.1 + pkgrel = 1 + url = http://people.redhat.com/~rjones/portablexdr/ + arch = any + license = GPL2 + makedepends = mingw-w64-configure + depends = mingw-w64-crt + options = !strip + options = staticlibs + options = !buildflags + source = http://people.redhat.com/~rjones/portablexdr//files/portablexdr-4.9.1.tar.gz + source = https://git.alpinelinux.org/cgit/aports/plain/community/portablexdr/portablexdr-4.9.1-no-config-h.patch + source = https://git.alpinelinux.org/cgit/aports/plain/community/portablexdr/portablexdr-build-use-intptr_t-and-uintptr_t-to-cast-ptr-to-int.patch + source = https://git.alpinelinux.org/cgit/aports/plain/community/portablexdr/quad-types.patch + sha256sums = 5cf4bdd153cf4d44eaf10b725f451d0cfadc070b4b9a9ccfb64094b8f78de72c + sha256sums = 75cec27cba9d667d4e137f13fb8e66a3a91344f458691e93d13928f5891216b9 + sha256sums = 7919d9157537552c34047f8423d3e923fcb79d097b796141d28e05d2c5b8b6e0 + sha256sums = 2a75fff6a66cc99af987fe928600c38eb17bb5163e8346a7feafa7374c542ce2 + +pkgname = mingw-w64-portablexdr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9885650a8820 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Jack O'Sullivan <jackos1998 at gmail dot com> + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" +_apkurl="https://git.alpinelinux.org/cgit/aports/plain/community/portablexdr" + +pkgname=mingw-w64-portablexdr +pkgver=4.9.1 +pkgrel=1 +pkgdesc="external data representation (XDR) library" +arch=('any') +url="http://people.redhat.com/~rjones/portablexdr/" +license=('GPL2') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-configure') +options=('!strip' 'staticlibs' '!buildflags') +source=("${url}/files/portablexdr-${pkgver}.tar.gz" + "${_apkurl}/portablexdr-${pkgver}-no-config-h.patch" + "${_apkurl}/portablexdr-build-use-intptr_t-and-uintptr_t-to-cast-ptr-to-int.patch" + "${_apkurl}/quad-types.patch") + +sha256sums=('5cf4bdd153cf4d44eaf10b725f451d0cfadc070b4b9a9ccfb64094b8f78de72c' + '75cec27cba9d667d4e137f13fb8e66a3a91344f458691e93d13928f5891216b9' + '7919d9157537552c34047f8423d3e923fcb79d097b796141d28e05d2c5b8b6e0' + '2a75fff6a66cc99af987fe928600c38eb17bb5163e8346a7feafa7374c542ce2') + +build() { + cd "${srcdir}/portablexdr-${pkgver}" + + local src + for src in "${source[@]}"; do + pwd + src="${src%%::*}" + src="${src##*/}" + [[ $src = *.patch ]] || continue + msg2 "Applying patch $src..." + patch -Np1 < "../$src" + done + + 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}/portablexdr-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + find "${pkgdir}/usr/${_arch}" -name '*.exe' | xargs -rtl1 ${_arch}-strip + find "${pkgdir}/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip -x + find "${pkgdir}/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g + done +} + +# vim:set ts=2 sw=2 et: |