Commit 66417e90 authored by Jeff Huang's avatar Jeff Huang 🤔
Browse files

[skip-ci] lib32-bzip2: fix build

parent 3958d8b9
Pipeline #3765 skipped
...@@ -7,7 +7,7 @@ arch=('x86_64') ...@@ -7,7 +7,7 @@ arch=('x86_64')
license=('custom') license=('custom')
url="" url=""
depends=('lib32-glibc' $_pkgbasename=$pkgver) depends=('lib32-glibc' $_pkgbasename=$pkgver)
makedepends=('gcc-multilib') makedepends=('lib32-gcc-libs')
source=(${_pkgbasename}-$pkgver.tar.gz{,.sig}) source=(${_pkgbasename}-$pkgver.tar.gz{,.sig})
sha256sums=('e768a87c5b1a79511499beb41500bcc4caf203726fff46a6f5f9ad27fe08ab2b' sha256sums=('e768a87c5b1a79511499beb41500bcc4caf203726fff46a6f5f9ad27fe08ab2b'
...@@ -15,27 +15,19 @@ validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark@ ...@@ -15,27 +15,19 @@ validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark@
build() { build() {
cd ${_pkgbasename}-${pkgver} cd ${_pkgbasename}-${pkgver}
sed -i "s|CC=gcc|CC=gcc -m32|" Makefile make -f Makefile-libbz2_so CC="gcc -m32 $CFLAGS $LDFLAGS"
sed -i "s|CC=gcc|CC=gcc -m32|" Makefile-libbz2_so make libbz2.a CC="gcc -m32 $CFLAGS $LDFLAGS"
# add large-file support
sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so
# use our optimization
sed -i "s|-O2|${CFLAGS}|g" Makefile
sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so
make -f Makefile-libbz2_so
make libbz2.a
} }
package(){ package(){
cd ${_pkgbasename}-${pkgver} cd ${_pkgbasename}-${pkgver}
install -Dm755 "${pkgdir}"/usr/lib32/
ln -s "${pkgdir}"/usr/lib32/
ln -s "${pkgdir}"/usr/lib32/
ln -s "${pkgdir}"/usr/lib32/
install -Dm644 libbz2.a ${pkgdir}/usr/lib32/libbz2.a install -dm755 "$pkgdir"/usr/lib32
cp -a* "$pkgdir"/usr/lib32
ln -s$pkgver "$pkgdir"/usr/lib32/
install -Dm644 libbz2.a "$pkgdir"/usr/lib32/libbz2.a
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment