blob: 0500866efaa440c3ba9a9188144f39fa62e1552a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Ivan Puntiy <ivan.puntiy-at-gmail>
# Contributor: Samsagax <samsagax@gmail.com>
pkgname=mingw-w64-libdxfrw
pkgver=0.6.3
pkgrel=1
pkgdesc="C++ library to read/write DXF files in binary and ascii form (mingw-w64)"
arch=("any")
url="http://sourceforge.net/projects/libdxfrw/"
license=('GPL2')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-configure')
options=(!strip !buildflags staticlibs)
source=("https://downloads.sourceforge.net/project/libdxfrw/libdxfrw-${pkgver}.tar.bz2")
sha256sums=('a0d8dd8e36537a9029bdf6063e099c648f7d6d1dccbcc2dd0f5d00962677a28c')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
# prepare () {
# cd "$srcdir/libdxfrw-$pkgver"
#
# # fix to create the dll (thanks to xantares)
# sed -i "s|libdxfrw_la_LDFLAGS =|libdxfrw_la_LDFLAGS = -no-undefined|g" Makefile.am
# # sed -i "s|bzip2|bzip2 subdir-objects|g" configure.ac
#
# ./autogen.sh
# }
build() {
cd "$srcdir/libdxfrw-$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/libdxfrw-$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
}
# vim:set ts=2 sw=2 et:
|