blob: ad130aa67a927936f0e457e6453fcb41ef3c5292 (
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
|
pkgname=mingw-w64-dlfcn
pkgver=1.4.1
pkgrel=1
pkgdesc="A wrapper for dlfcn to the Win32 API (mingw-w64)"
arch=(any)
url="https://github.com/dlfcn-win32/dlfcn-win32"
license=('MIT')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-cmake')
options=('!buildflags' '!strip' 'staticlibs')
source=("https://github.com/dlfcn-win32/dlfcn-win32/archive/v${pkgver}.tar.gz")
sha256sums=('30a9f72bdf674857899eb7e553df1f0d362c5da2a576ae51f886e1171fbdb399')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build()
{
cd "$srcdir/dlfcn-win32-$pkgver"
for _arch in ${_architectures}; do
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
${_arch}-cmake ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/dlfcn-win32-$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
}
|