diff options
author | Cassandra Watergate | 2022-11-25 13:45:25 +0200 |
---|---|---|
committer | Cassandra Watergate | 2022-11-25 13:45:25 +0200 |
commit | 2e2d25a26a7588c399e409d3ee855c0d1d90d10c (patch) | |
tree | 8175e97d9c1ed458da65aaa7ce93681eaf2cec25 | |
download | aur-2e2d25a26a7588c399e409d3ee855c0d1d90d10c.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..102f203cd3a1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = lzlib + pkgdesc = A library providing in-memory LZMA compression and decompression functions (32-bit) + pkgver = 1.13 + pkgrel = 2 + url = http://www.nongnu.org/lzip/lzlib.html + arch = x86_64 + license = BSD + depends = lib32-gcc-libs + options = !emptydirs + source = http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-1.13.tar.gz + source = http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-1.13.tar.gz.sig + validpgpkeys = 1D41C14B272A2219A739FA4F8FE99503132D7742 + sha256sums = a1ab58f3148ba4b2674e938438166042137a9275bed747306641acfddc9ffb80 + sha256sums = SKIP + +pkgname = lib32-lzlib diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..22bd29ec2c2e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Cassandra Watergate <cassandrajwatergate@gmail.com> +# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org> +# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org> + +pkgbase=lzlib +pkgname=lib32-$pkgbase +pkgver=1.13 +pkgrel=2 +pkgdesc="A library providing in-memory LZMA compression and decompression functions" +pkgdesc+=" (32-bit)" +arch=('x86_64') +url="http://www.nongnu.org/lzip/lzlib.html" +license=('BSD') +depends=('lib32-gcc-libs') +options=('!emptydirs') +source=(http://download.savannah.gnu.org/releases/lzip/$pkgbase/$pkgbase-$pkgver.tar.gz{,.sig}) +validpgpkeys=('1D41C14B272A2219A739FA4F8FE99503132D7742') # Antonio Diaz Diaz +sha256sums=('a1ab58f3148ba4b2674e938438166042137a9275bed747306641acfddc9ffb80' + 'SKIP') + +build() { + cd "${srcdir}"/$pkgbase-$pkgver + + ./configure CFLAGS="${CFLAGS} -m32" \ + CXXFLAGS="${CXXFLAGS} -m32" \ + LDFLAGS="${LDFLAGS} -m32" \ + PKG_CONFIG_PATH='/usr/lib32/pkgconfig' \ + --prefix=/usr \ + --enable-shared \ + --program-suffix="-32" \ + --libdir=/usr/lib32 \ + --includedir=/usr/include/"$pkgbase"32 \ + --build=i686-pc-linux-gnu + make +} + +package() { + cd "${srcdir}"/$pkgbase-$pkgver + + make DESTDIR="${pkgdir}" install + + # remove everything that is provided by lzlib + rm -rf "$pkgdir"/usr/{include,share,bin} + + install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/$pkgname/COPYING +} |