diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-03-27 04:04:51 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-03-27 04:04:51 +0800 |
commit | a39f09f2a1654026d6474f0437d08ae9b3ff2ad0 (patch) | |
tree | d95242d0e42550f95a328bc049f26721c95a9310 | |
parent | a42aad5862e1a425986fde39c3937d82db0a9da6 (diff) | |
download | AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.tar AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.tar.gz AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.tar.bz2 AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.tar.lz AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.tar.xz AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.tar.zst AUR4-PKGBUILD-a39f09f2a1654026d6474f0437d08ae9b3ff2ad0.zip |
mingw-w64-libepoxy: 1.2 (initial commit)
-rw-r--r-- | mingw-w64-libepoxy/.SRCINFO | 20 | ||||
-rw-r--r-- | mingw-w64-libepoxy/PKGBUILD | 45 |
2 files changed, 65 insertions, 0 deletions
diff --git a/mingw-w64-libepoxy/.SRCINFO b/mingw-w64-libepoxy/.SRCINFO new file mode 100644 index 0000000..5b6d1d9 --- /dev/null +++ b/mingw-w64-libepoxy/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-libepoxy + pkgdesc = A library for handling OpenGL function pointer management for you (mingw-w64) + pkgver = 1.2 + pkgrel = 1 + url = https://github.com/anholt/libepoxy + arch = any + license = MIT + makedepends = mingw-w64-gcc + makedepends = mingw-w64-configure + makedepends = xorg-util-macros + makedepends = python + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + source = libepoxy-1.2.tar.gz::https://github.com/anholt/libepoxy/archive/v1.2.tar.gz + sha256sums = 42c328440f60a5795835c5ec4bdfc1329e75bba16b6e22b3a87ed17e9679e8f6 + +pkgname = mingw-w64-libepoxy + diff --git a/mingw-w64-libepoxy/PKGBUILD b/mingw-w64-libepoxy/PKGBUILD new file mode 100644 index 0000000..56c7fd1 --- /dev/null +++ b/mingw-w64-libepoxy/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: lantw44 at gmail dot com + +pkgname=mingw-w64-libepoxy +pkgver=1.2 +pkgrel=1 +pkgdesc="A library for handling OpenGL function pointer management for you (mingw-w64)" +arch=(any) +url="https://github.com/anholt/libepoxy" +license=('MIT') +makedepends=( + 'mingw-w64-gcc' + 'mingw-w64-configure' + 'xorg-util-macros' + 'python') +depends=( + 'mingw-w64-crt') +options=(!strip !buildflags staticlibs) +source=(libepoxy-${pkgver}.tar.gz::https://github.com/anholt/libepoxy/archive/v${pkgver}.tar.gz) +sha256sums=('42c328440f60a5795835c5ec4bdfc1329e75bba16b6e22b3a87ed17e9679e8f6') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/libepoxy-${pkgver}" + NOCONFIGURE=1 ./autogen.sh + for _arch in ${_architectures}; do + mkdir -p "build-${_arch}" + cd "build-${_arch}" + ${_arch}-configure + make + cd .. + done +} + +package() { + cd "${srcdir}/libepoxy-${pkgver}" + for _arch in ${_architectures}; do + cd "build-${_arch}" + make DESTDIR="$pkgdir" install + find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' -o -name '*.manifest' | xargs -rtl1 rm + 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 + cd .. + done +} |