blob: f0f7b9d8d77476a7d435485dae8aaa1aaad72ee2 (
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
|
# Maintainer: Andrew Kozik <andrewkoz at live dot com>
pkgname=mingw-w64-lzlib
pkgver=1.14
pkgrel=2
pkgdesc="A library providing in-memory LZMA compression and decompression functions (mingw-w64)"
arch=('any')
url="https://www.nongnu.org/lzip/lzlib.html"
license=('2-clause BSD')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-configure' 'mingw-w64-make')
options=('!strip' 'staticlibs' '!buildflags')
source=(http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-${pkgver}.tar.gz{,.sig})
validpgpkeys=('1D41C14B272A2219A739FA4F8FE99503132D7742') # Antonio Diaz Diaz
sha256sums=('5acac8714ed4f306020bae660dddce706e5f8a795863679037da9fe6bf4dcf6f'
'SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "$srcdir"/lzlib-${pkgver}
for _arch in $_architectures; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure
${_arch}-make
popd
done
}
package() {
cd "$srcdir"
for _arch in ${_architectures}; do
cd "$srcdir"/lzlib-${pkgver}/build-${_arch}
DESTDIR="$pkgdir" ${_arch}-make install
install -Dm755 minilzip.exe "$pkgdir"/usr/${_arch}/bin/minilzip.exe
install -Dm755 liblz.so.${pkgver} "$pkgdir"/usr/${_arch}/bin/liblz.dll
rm "$pkgdir"/usr/${_arch}/lib/liblz.so*
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|