Commit 3974e312 authored by Xuetian Weng's avatar Xuetian Weng

update lib32-libpng,sqlite3

parent 239ec50f
......@@ -5,8 +5,9 @@
_pkgbasename=libpng
pkgname=lib32-$_pkgbasename
pkgver=1.6.11
_apngver=1.6.11
pkgver=1.6.15
_apngver=1.6.15
_libversion=16
pkgrel=1
pkgdesc="A collection of routines used to create PNG format graphics files (32-bit)"
arch=('x86_64')
......@@ -15,10 +16,12 @@ license=('custom')
depends=('lib32-zlib' $_pkgbasename=$pkgver 'sh')
makedepends=(gcc-multilib)
options=('!libtool')
source=("http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.xz"
source=("http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.xz"{,.asc}
"http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-${_apngver}-apng.patch.gz")
md5sums=('fd594bd3f1cf0389c03f5297ce92671b'
'45fdcd586d36431c3d6d6dbe47863af1')
md5sums=('a95cb387c53215b034203b41ec57c7e5'
'SKIP'
'612524080d5515f4ea81541a9b13bf61')
validpgpkeys=(8048643BA2C840F4F92A195FF54984BFA16C640F)
build() {
export CC="gcc -m32"
......@@ -31,7 +34,7 @@ build() {
# see http://sourceforge.net/projects/libpng-apng/
patch -p1 -i "${srcdir}/libpng-${_apngver}-apng.patch"
./configure --prefix=/usr --libdir=/usr/lib32
./configure --prefix=/usr --libdir=/usr/lib32 --program-suffix=-32 --disable-static
make
}
......@@ -43,7 +46,11 @@ package() {
cd contrib/pngminus
make PNGLIB="-L${pkgdir}/usr/lib32 -lpng" -f makefile.std png2pnm pnm2png
rm -rf "${pkgdir}"/usr/{include,share,bin}
rm -rf "${pkgdir}"/usr/{include,share}
rm "$pkgdir/usr/bin/libpng-config"
ln -s "libpng${_libversion}-config-32" "$pkgdir/usr/bin/libpng-config-32"
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}
......@@ -4,8 +4,8 @@
_pkgbasename=sqlite3
pkgname=lib32-sqlite3
_amalgamationver=3080500
pkgver=3.8.5
_amalgamationver=3080702
pkgver=3.8.7.2
pkgrel=1
pkgdesc="A C library that implements an SQL database engine (32-bit)"
arch=('x86_64')
......@@ -13,12 +13,11 @@ license=('custom')
url="http://www.sqlite.org/"
depends=('lib32-glibc' $_pkgbasename=$pkgver)
makedepends=('tcl' 'gcc-multilib' 'lib32-readline')
source=(http://www.sqlite.org/2014/sqlite-src-${_amalgamationver}.zip)
options=(!libtool)
sha1sums=('a6ba45cf83273fa8f0cf77a6ce3c4d7616e6e52c')
source=(http://www.sqlite.org/2014/sqlite-autoconf-${_amalgamationver}.tar.gz)
sha1sums=('175283383d010709f76fdd13cb0c8c3c329a1c67')
build() {
cd ${srcdir}/sqlite-src-${_amalgamationver}
cd ${srcdir}/sqlite-autoconf-${_amalgamationver}
export CC="gcc -m32"
export CXX="g++ -m32"
......@@ -26,23 +25,17 @@ build() {
export LTLINK_EXTRAS="-ldl"
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
./configure --prefix=/usr --libdir=/usr/lib32 \
--enable-threadsafe \
--enable-threads-override-locks \
--enable-cross-thread-connections \
--disable-static --disable-tcl \
--enable-load-extension
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
./configure --prefix=/usr --libdir=/usr/lib32 \
--disable-static
make
}
package() {
cd ${srcdir}/sqlite-src-${_amalgamationver}
cd ${srcdir}/sqlite-autoconf-${_amalgamationver}
make DESTDIR=${pkgdir} install
rm -rf "${pkgdir}"/usr/{include,share,bin}
......
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