blob: 62e71739ce5a3dbf0fe15856d31a71dbdff3c181 (
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
|
# Maintainer: Kris McCleary <kris27mc@gmail.com>
_pkgname=libzip
pkgname=lib32-${_pkgname}
pkgver=1.3.0
pkgrel=1
pkgdesc="A C library for reading, creating, and modifying zip archives"
url="http://www.nih.at/libzip/index.html"
license=('BSD')
arch=('x86_64')
depends=('lib32-zlib' 'lib32-glibc')
makedepends=('gcc-multilib')
options=('!libtool')
source=("http://www.nih.at/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('a919350f683ca6194df0a856698b477da9e06416665b883fe4fc23c0e46e6398')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
#autoreconf -i
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure --build=i386-pc-linux-gnu CFLAGS="-m32 -DNDEBUG" CXXFLAGS="-m32 -DNDEBUG" LDFLAGS=-m32 --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install
rm -r "${pkgdir}"/usr/{bin,include,share}
}
|