summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b44fb9bedb2ea8ab21229823b5744594d5f7e6ef (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
# Maintainer: Andrew Kozik <andrewkoz at live dot com>

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

pkgname=mingw-w64-lzlib
pkgver=1.11
pkgrel=1
pkgdesc="Lzlib is a data compression 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=()
makedepends=('mingw-w64-gcc')
options=('!strip' 'staticlibs' '!buildflags')

source=("http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-${pkgver}.tar.gz")
sha256sums=('6c5c5f8759d1ab7c4c3c53788ea2d9daad04aeddcf338226893f8ff134914d36')

build() {
  cd "${srcdir}/lzlib-${pkgver}"
  for _arch in $_architectures; do
    mkdir -p "${srcdir}/build-${_arch}"
    cp -a "${srcdir}/lzlib-${pkgver}/"* "${srcdir}/build-${_arch}"
    cd "${srcdir}/build-${_arch}"
    ./configure CC=${_arch}-gcc --prefix=/usr/${_arch}
    make
    ## make check
  done
}

package() {
  cd "${srcdir}/${_gitname}"
  for _arch in ${_architectures}; do
    cd "${srcdir}/build-${_arch}"
    DESTDIR="${pkgdir}" make install
  done
}