Merge branch 'testing' of gitorious.org:chakra-packages/lib32 into testing

This commit is contained in:
Neophytos 2013-07-26 18:13:45 +00:00
commit 56f8e0473d
21 changed files with 178 additions and 85 deletions

View File

@ -1,7 +1,7 @@
_pkgbasename=bzip2
pkgname=lib32-bzip2
pkgver=1.0.6
pkgrel=1
pkgrel=2
pkgdesc="A high-quality data compression program (32-bit)"
arch=('x86_64')
license=('custom')

View File

@ -5,7 +5,7 @@
_pkgbasename=curl
pkgname=lib32-$_pkgbasename
pkgver=7.28.1
pkgver=7.31.0
pkgrel=1
pkgdesc="An URL retrieval utility and library (32-bit)"
arch=('x86_64')
@ -15,7 +15,7 @@ depends=('lib32-zlib' 'lib32-openssl' 'lib32-libssh2' 'bash' 'ca-certificates' $
makedepends=(gcc-multilib)
options=('!libtool')
source=("http://curl.haxx.se/download/${_pkgbasename}-${pkgver}.tar.bz2")
md5sums=('26eb081c999b0e203770869427e9a93d')
md5sums=('b7bea20579ac2f696338ae03f2c19ba5')
build() {
export CC="gcc -m32"

View File

@ -5,7 +5,7 @@
pkgname=lib32-dbus-core
_pkgbasename=dbus-core
pkgver=1.6.4
pkgver=1.6.12
pkgrel=2
pkgdesc="Freedesktop.org message bus system (32-bit)"
arch=('x86_64')
@ -15,7 +15,7 @@ depends=('lib32-glibc' 'lib32-expat' $_pkgbasename=$pkgver)
makedepends=('gcc-multilib')
options=(!libtool)
source=(http://dbus.freedesktop.org/releases/dbus/dbus-${pkgver}.tar.gz)
md5sums=('5ec43dc4554cba638917317b2b4f7640')
md5sums=('a70edc50524f258eaf5c9a9994ed8748')
build() {
export CC="gcc -m32"

View File

@ -7,17 +7,17 @@
_pkgbasename=dbus-glib
pkgname=lib32-${_pkgbasename}
pkgver=0.100
pkgrel=2
pkgver=0.100.2
pkgrel=1
pkgdesc="GLib bindings for DBUS (32-bit)"
arch=(x86_64)
license=('GPL')
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
depends=('lib32-dbus-core' 'lib32-glib2' ${_pkgbasename})
depends=('lib32-dbus-core' 'lib32-glib2' "${_pkgbasename}=${pkgver}")
makedepends=('gcc-multilib' 'lib32-libffi' 'pkgconfig')
options=(!libtool !emptydirs)
source=(http://dbus.freedesktop.org/releases/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
md5sums=('d33959a9c0c6a158f5ac6d640316e89e')
md5sums=('ad0920c7e3aad669163bb59171cf138e')
build() {
export CC="gcc -m32"

33
lib32-json-c/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
pkgname=lib32-json-c
_basepkgname=json-c
pkgver=0.11
pkgrel=1
pkgdesc="JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects."
arch=('x86_64')
url="https://github.com/json-c/json-c/wiki"
depends=("$_basepkgname=${pkgver}")
license=('GPL')
options=(!libtool !makeflags)
source=("https://s3.amazonaws.com/${_basepkgname}_releases/releases/${_basepkgname}-${pkgver}.tar.gz")
md5sums=('aa02367d2f7a830bf1e3376f77881e98')
build() {
export CC="gcc -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_basepkgname}-${pkgver}"
./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
make
}
package() {
cd "${srcdir}/${_basepkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf ${pkgdir}/usr/include
}
# vim:set ts=2 sw=2 et:

View File

@ -5,21 +5,21 @@
_pkgbasename=krb5
pkgname=lib32-$_pkgbasename
pkgver=1.10.3
pkgver=1.11.3
pkgrel=1
pkgdesc="The Kerberos network authentication system (32-bit)"
arch=('x86_64')
url="http://web.mit.edu/kerberos/"
license=('custom')
depends=('lib32-e2fsprogs' 'lib32-libldap' lib32-keyutils $_pkgbasename=$pkgver)
makedepends=('perl' gcc-multilib)
depends=('lib32-e2fsprogs' 'lib32-libldap' 'lib32-keyutils' $_pkgbasename=$pkgver)
makedepends=('perl' 'gcc-multilib')
provides=('lib32-heimdal')
replaces=('lib32-heimdal')
conflicts=('lib32-heimdal')
source=("http://web.mit.edu/kerberos/dist/${_pkgbasename}/1.10/${_pkgbasename}-${pkgver}-signed.tar"
'krb5-1.10.1-gcc47.patch')
sha1sums=('04ab9837e5d1958158bcb30bd6480201089a0cbb'
'36ac2f3a4541f2afbc4625a8ce7fb7c7936a76a7')
source=("http://web.mit.edu/kerberos/dist/${_pkgbasename}/1.11/${_pkgbasename}-${pkgver}-signed.tar"
'krb5-config_LDFLAGS.patch')
sha1sums=('df708a530a22ed09c7825742c108180319b10463'
'09e478cddfb9d46d2981dd25ef96b8c3fd91e1aa')
options=('!emptydirs')
@ -27,10 +27,9 @@ build() {
tar zxvf ${_pkgbasename}-${pkgver}.tar.gz
cd "${srcdir}/${_pkgbasename}-${pkgver}/src"
# With gcc47 : deltat.c:1694:12: error: 'yylval' may be used uninitialized
# in this function [-Werror=maybe-uninitialized]
# As this is generated code, just ignore the complaint.
patch -Np2 -i ../../krb5-1.10.1-gcc47.patch
# cf https://bugs.gentoo.org/show_bug.cgi?id=448778
patch -Np2 -i "${srcdir}"/krb5-config_LDFLAGS.patch
rm lib/krb5/krb/deltat.c
export CC="gcc -m32"
@ -42,7 +41,7 @@ build() {
./configure --prefix=/usr \
--sysconfdir=/etc/krb5 \
--mandir=/usr/share/man \
--localstatedir=/var/lia \
--localstatedir=/var/lib \
--libdir=/usr/lib32 \
--enable-shared \
--with-system-et \
@ -50,16 +49,17 @@ build() {
--disable-rpath \
--without-tcl \
--enable-dns-for-realm \
--with-ldap
--with-ldap \
--without-system-verto
make
}
check() {
# We can't do this in the build directory.
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make -C src check
}
#check() {
# We can't do this in the build directory.
#cd "${srcdir}/${_pkgbasename}-${pkgver}"
#make -C src check
#}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}/src"

View File

@ -1,11 +0,0 @@
diff -Naur krb5-1.10.1.ori/src/lib/krb5/krb/x-deltat.y krb5-1.10.1/src/lib/krb5/krb/x-deltat.y
--- krb5-1.10.1.ori/src/lib/krb5/krb/x-deltat.y 2011-09-06 07:34:32.000000000 -0400
+++ krb5-1.10.1/src/lib/krb5/krb/x-deltat.y 2012-03-24 13:15:11.543551318 -0400
@@ -44,6 +44,7 @@
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include <ctype.h>

View File

@ -0,0 +1,12 @@
Bug #448778
--- krb5-1.11/src/krb5-config.in 2012-12-18 02:47:04.000000000 +0000
+++ krb5-1.11/src/krb5-config.in 2012-12-28 07:13:16.582693363 +0000
@@ -217,7 +217,7 @@
-e 's#\$(PROG_RPATH)#'$libdir'#' \
-e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \
-e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
- -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \
+ -e 's#\$(LDFLAGS)##' \
-e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
-e 's#\$(CFLAGS)##'`

View File

@ -6,7 +6,7 @@
_pkgbasename=libcups
pkgname=lib32-$_pkgbasename
pkgver=1.6.2
pkgrel=1
pkgrel=2
pkgdesc="The CUPS Printing System - client libraries (32-bit)"
arch=('x86_64')
license=('GPL')

View File

@ -5,7 +5,7 @@
_pkgbasename=libdrm
pkgname=lib32-$_pkgbasename
pkgver=2.4.42
pkgver=2.4.46
pkgrel=1
pkgdesc="Userspace interface to kernel DRM services (32-bit)"
arch=(x86_64)
@ -16,7 +16,7 @@ options=('!libtool')
url="http://dri.freedesktop.org/"
source=("http://dri.freedesktop.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2"
'no-pthread-stubs.patch')
sha1sums=('7004899b6a80b2ee50f35f883cc14804c3e24188'
sha1sums=('b3a0fac0c8ef9110dce32feb8004f53f0081dea4'
'1602cd40f42238935a3c8d8aebd1fc0afb974379')
build() {
@ -34,7 +34,9 @@ build() {
--enable-intel \
--enable-radeon \
--enable-vmwgfx-experimental-api \
--enable-nouveau-experimental-api
--enable-nouveau-experimental-api \
--enable-omap-experimental-api \
--enable-exynos-experimental-api
make
}

View File

@ -5,7 +5,7 @@
_pkgbasename=libgcrypt
pkgname=lib32-$_pkgbasename
pkgver=1.4.6
pkgver=1.5.2
pkgrel=1
pkgdesc="a general purpose crypto library based on the code used (32-bit)"
arch=(x86_64)
@ -17,7 +17,7 @@ options=(!libtool)
source=(ftp://ftp.gnupg.org/gcrypt/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2
#ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgcrypt/${_pkgbasename}-${pkgver}.tar.bz2
)
md5sums=('dbf99425a4fe9217c84ce3a35d938634')
sha1sums=('c9998383532ba3e8bcaf690f2f0d65e814b48d2f')
build() {
export CC="gcc -m32"

View File

@ -5,7 +5,7 @@
_pkgbasename=libgpg-error
pkgname=lib32-$_pkgbasename
pkgver=1.7
pkgver=1.12
pkgrel=1
pkgdesc="Support library for libgcrypt (32-bit)"
arch=(x86_64)
@ -16,7 +16,7 @@ makedepends=(gcc-multilib)
options=(!libtool)
source=(ftp://ftp.gnupg.org/gcrypt/libgpg-error/${_pkgbasename}-${pkgver}.tar.bz2)
#ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2)
md5sums=('62c0d09d1e76c5b6da8fff92314c4665')
md5sums=('8f0eb41a344d19ac2aa9bd101dfb9ce6')
build() {

View File

@ -5,7 +5,7 @@
_pkgbasename=libldap
pkgname=lib32-$_pkgbasename
pkgver=2.4.33
pkgver=2.4.35
pkgrel=1
pkgdesc="Lightweight Directory Access Protocol (LDAP) client libraries (32-bit)"
arch=('x86_64')
@ -16,7 +16,7 @@ makedepends=(gcc-multilib)
options=('!libtool')
source=("ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-${pkgver}.tgz"
'ntlm.patch')
md5sums=('5adae44897647c15ce5abbff313bc85a'
md5sums=('cd75d82ca89fb0280cba66ca6bd97448'
'b75109064236048da33c7bbd5b48196f')
build() {

View File

@ -3,15 +3,18 @@
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
pkgname=('lib32-llvm')
pkgver=3.2
pkgrel=1
_basepkgname=llvm
pkgname='lib32-llvm'
pkgver=3.3
pkgrel=2
arch=('x86_64')
pkgdesc="Low Level Virtual Machine (32 bits version)"
url="http://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
depends=('perl' 'lib32-libffi' 'llvm' "${_basepkgname}=${pkgver}")
makedepends=('lib32-libffi' 'python2' 'gcc-multilib' 'groff')
source=("http://llvm.org/releases/${pkgver}/llvm-${pkgver}.src.tar.gz")
md5sums=('71610289bbc819e3e15fdd562809a2d7')
md5sums=('40564e1dc390f9844f1711c08b08e391')
build() {
export CC="gcc -m32"
@ -62,9 +65,6 @@ build() {
}
package() {
pkgdesc="Low Level Virtual Machine (32 bits version)"
depends=('perl' 'lib32-libffi' 'llvm')
cd "${srcdir}/llvm-${pkgver}.src"
# We move the clang directory out of the tree so it won't get installed and
@ -93,7 +93,12 @@ depends=('perl' 'lib32-libffi' 'llvm')
install -D -m644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -rf "${pkgdir}/usr"/{bin,lib,include,share/{doc,man}}
mv "$pkgdir"/usr/include/llvm/Config/*config.h "$pkgdir/"
rm -rf "${pkgdir}/usr"/{bin,include,share/{doc,man}}
install -d "$pkgdir/usr/include/llvm/Config"
mv "$pkgdir/config.h" "$pkgdir/usr/include/llvm/Config/config-32.h"
mv "$pkgdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config-32.h"
mkdir "${pkgdir}/usr/bin"
mv "${pkgdir}/usr/lib32/llvm-config" "${pkgdir}/usr/bin/llvm-config32"

View File

@ -5,16 +5,17 @@
pkgbase=lib32-mesa
pkgname=('lib32-mesa' 'lib32-libgl' 'lib32-libglapi')
pkgver=9.0.2
pkgrel=2
pkgver=9.1.5
pkgrel=1
arch=(x86_64)
makedepends=('glproto>=1.4.12' 'pkgconfig' 'lib32-libdrm>=2.4.37' 'lib32-libxxf86vm>=1.1.0' 'lib32-libxdamage>=1.1.3'
'lib32-expat>=2.0.1' 'lib32-libx11>=1.3.5' 'lib32-libxt>=1.0.8' 'lib32-gcc-libs>=4.7' 'lib32-llvm>=3.2'
'dri2proto>=2.6' 'python2' 'libxml2' 'gcc-multilib' 'imake' 'libvdpau')
'dri2proto>=2.6' 'python2' 'libxml2' 'gcc-multilib' 'imake')
url="http://mesa3d.sourceforge.net"
license=('custom')
options=('!libtool')
source=("ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2")
md5sums=('dc45d1192203e418163e0017640e1cfc')
md5sums=('4ed2af5943141a85a21869053a2fc2eb')
build() {
export CFLAGS="-m32"
@ -33,6 +34,7 @@ build() {
--with-dri-driverdir=/usr/lib32/xorg/modules/dri \
--with-gallium-drivers=r300,r600,nouveau,svga,swrast \
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
--with-llvm-shared-libs \
--enable-gallium-llvm \
--disable-gallium-egl \
--enable-shared-glapi\
@ -45,14 +47,9 @@ build() {
--disable-egl \
--enable-texture-float \
--enable-xa \
--enable-vdpau \
--enable-32-bit \
--libdir=/usr/lib32 \
--disable-64-bit
# fix a build break with new llvm
sed -i "s:-Werror=implicit-function-declaration::" src/gallium/drivers/r600/Makefile
make
}
@ -66,8 +63,8 @@ package_lib32-libgl() {
install -m755 -d "${pkgdir}/usr/lib32"
install -m755 -d "${pkgdir}/usr/lib32/xorg/modules/extensions"
bin/minstall lib32/libGL.so* "${pkgdir}/usr/lib32/"
bin/minstall lib32/libdricore9.0.2.so* "${pkgdir}/usr/lib32/"
mv lib32/libGL.so* "${pkgdir}/usr/lib32/"
mv lib32/libdricore9.1.5.so* "${pkgdir}/usr/lib32/"
cd src/mesa/drivers/dri
make -C ${srcdir}/Mesa-${pkgver}/src/gallium/targets/dri-swrast DESTDIR="${pkgdir}" install
@ -85,7 +82,7 @@ package_lib32-libglapi() {
cd ${srcdir}/?esa-*
install -m755 -d "${pkgdir}/usr/lib32"
bin/minstall lib32/libglapi.so* "${pkgdir}/usr/lib32/"
mv lib32/libglapi.so* "${pkgdir}/usr/lib32/"
install -m755 -d "${pkgdir}/usr/share/licenses/libglapi"
ln -s libglapi "${pkgdir}/usr/share/licenses/libglapi/lib32-libglapi"
@ -104,7 +101,7 @@ package_lib32-mesa() {
rm -f "${pkgdir}/usr/lib32/libglapi.so"*
rm -f "${pkgdir}/usr/lib32/libGL.so"*
rm -f "${pkgdir}/usr/lib32/libdricore9.0.2.so"*
rm -f "${pkgdir}/usr/lib32/libdricore9.1.5.so"*
rm -f "${pkgdir}/usr/lib32/xorg/modules/dri/swrast_dri.so"*
rm -rf "${pkgdir}/usr/include"
rm -rf "${pkgdir}/usr/etc"

View File

@ -3,7 +3,7 @@
_pkgbasename=nvidia-utils-bumblebee
pkgname=lib32-$_pkgbasename
pkgver=313.30
pkgver=319.32
pkgrel=1
pkgdesc="NVIDIA drivers utilities and libraries (32-bit). Repacked and installed in away that won't break LibGL from mesa."
arch=('x86_64')
@ -15,7 +15,7 @@ license=('custom')
options=('!strip')
_pkg="NVIDIA-Linux-x86-${pkgver}"
source=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/${_pkg}.run")
md5sums=('69c0f66c9246217a4fe4d28e95bb7bb6')
md5sums=('978339ff37c3207f3a39d3952721dcdb')
build() {
cd "${srcdir}"

View File

@ -2,8 +2,8 @@
_pkgbasename=nvidia-utils
pkgname=lib32-$_pkgbasename
pkgver=313.30
pkgrel=2
pkgver=319.32
pkgrel=1
pkgdesc="NVIDIA drivers utilities and libraries. (32-bit)"
arch=('x86_64')
url="http://www.nvidia.com/"
@ -16,7 +16,7 @@ options=('!strip')
_filearch='x86'
_pkg="NVIDIA-Linux-${_filearch}-${pkgver}"
source=("http://us.download.nvidia.com/XFree86/Linux-${_filearch}/${pkgver}/${_pkg}.run")
md5sums=('69c0f66c9246217a4fe4d28e95bb7bb6')
md5sums=('978339ff37c3207f3a39d3952721dcdb')
build() {
cd $srcdir

View File

@ -3,7 +3,7 @@
_pkgbasename=pulseaudio
pkgname="lib32-${_pkgbasename}"
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
pkgver=3.99.2
pkgver=4.0
pkgrel=1
arch=('x86_64')
url="http://pulseaudio.org/"
@ -11,7 +11,7 @@ license=('GPL' 'LGPL')
depends=(lib32-{dbus-core,xcb-util,json-c}
lib32-lib{asyncns,cap,xtst,sm,sndfile,samplerate}
'webrtc-audio-processing' 'systemd>=189'
"pulseaudio=${pkgver}")
"$_pkgbasename=${pkgver}")
makedepends=('pkgconfig' 'gcc-multilib' 'lib32-libtool' 'intltool'
'lib32-glib2' 'lib32-speex')
optdepends=('lib32-alsa-plugins: ALSA support')
@ -20,11 +20,11 @@ conflicts=('lib32-libpulse')
replaces=('lib32-libpulse')
options=(!emptydirs !libtool)
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${pkgver}.tar.xz")
sha256sums=('165dc52760377af939d06b49a170ef65c4b844b22020b57c69c9bd6fe56c781c')
sha256sums=('35ceb36bb1822fe54f0b5e4863b4f486769fdfb8ff2111f01fd8778928f9cdae')
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
#_pkglibs="libpulsecommon-${pkgver}.la libpulsedsp.la"
_pkglibs="libpulsecommon-3.99.la libpulsedsp.la"
_pkglibs="libpulsecommon-4.0.la libpulsedsp.la"
build() {

View File

@ -4,8 +4,8 @@
_pkgbasename=qt
pkgname="lib32-${_pkgbasename}"
pkgver=4.8.4
pkgrel=2
pkgver=4.8.5
pkgrel=1
pkgdesc='A cross-platform application and UI framework. (ELF32)'
arch=('x86_64')
url='http://qt-project.org/'
@ -16,8 +16,8 @@ depends=(lib32-{fontconfig,sqlite3,alsa-lib,glib2,dbus-core,openssl,gstreamer0.1
makedepends=('cups' 'gcc-multilib' lib32-{mesa,libcups,libxfixes} 'lib32-icu')
options=('!libtool')
_pkgfqn="${_pkgbasename}-everywhere-opensource-src-${pkgver}"
source=("http://releases.qt-project.org/qt4/source/${_pkgfqn}.tar.gz")
md5sums=('89c5ecba180cae74c66260ac732dc5cb')
source=("http://download.qt-project.org/official_releases/qt/4.8/${pkgver}/${_pkgfqn}.tar.gz")
md5sums=('1864987bdbb2f58f8ae8b350dfdbe133')
build() {
cd "${srcdir}/${_pkgfqn}"

View File

@ -5,8 +5,8 @@
_pkgbasename=zlib
pkgname=lib32-$_pkgbasename
pkgver=1.2.7
pkgrel=2
pkgver=1.2.8
pkgrel=1
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP (32-bit)'
arch=('x86_64')
license=('custom')
@ -15,7 +15,7 @@ depends=('lib32-glibc' $_pkgbasename=$pkgver)
makedepends=(gcc-multilib)
options=('!makeflags')
source=("http://zlib.net/${_pkgbasename}-${pkgver}.tar.gz")
md5sums=('60df6a37c56e7c1366cca812414f7b85')
md5sums=('44d667c142d7cda120332623eab69f40')
build() {
export CC="gcc -m32"

55
peazip/PKGBUILD Normal file
View File

@ -0,0 +1,55 @@
#
# Lib32 Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
pkgname=peazip
pkgver=4.7.1
pkgrel=2
pkgdesc="Free, Open Source file and archive manager. Supports 7Z, ACE, ARC, CAB, ISO, PAQ, PEA, RAR, TAR, ZIP and many more archive formats."
arch=('x86_64')
url="http://peazip.org/"
license=('GPL')
depends=('zip' 'unzip' 'unrar' 'xz' 'p7zip' 'unarj' 'lib32-qt')
optdepends=('rar: support for RAR archive compression')
conflicts=('lib32-fpc-qtbindings') # just in case it will be added - the PKGBUILD would need a change
source=("http://sourceforge.net/projects/peazip/files/${pkgver}/${pkgname}-${pkgver}.LINUX.Qt.tgz")
noextract=("${pkgname}-${pkgver}.LINUX.Qt.tgz")
md5sums=('e2c1a1b52292190bd6c5cb4b465bb4dc')
package() {
# Extract the software as distributed upstream
tar -zxf "${srcdir}/${pkgname}-${pkgver}.LINUX.Qt.tgz" -C "${pkgdir}"
# Remove useless KDE3 support directories or empty ones
rm -rf "${pkgdir}/opt"
rm -rf "${pkgdir}/usr/lib32"
rm -rf "${pkgdir}/usr/local/lib"
rm -rf "${pkgdir}/usr/local/lib32"
rm -rf "${pkgdir}/usr/local/share/PeaZip/res/icons"
rm -rf "${pkgdir}/usr/local/share/PeaZip/res/unace"
rm -rf "${pkgdir}/usr/local/share/PeaZip/FreeDesktop_integration/kde3-konqueror"
# Move the libQtPas library to a place coherent with the rest of the lib32 packages
mv "${pkgdir}/usr/lib"{,32}
# Move files from /usr/local/share to /usr/share prefix
for directory in "${pkgdir}/usr/local/share"/*; do
mv "${directory}" "${directory}/../../../share"
done
rm -rf "${pkgdir}/usr/local/share"
# Move files from /usr/local to /usr prefix
for directory in "${pkgdir}/usr/local"/*; do
mv "${directory}" "${directory}/../../"
done
rm -rf "${pkgdir}/usr/local"
# Recreate the application launchers
ln -sf /usr/share/PeaZip/res/pea "${pkgdir}/usr/bin/pea"
ln -sf /usr/share/PeaZip/res/pealauncher "${pkgdir}/usr/bin/pealauncher"
ln -sf /usr/share/PeaZip/peazip "${pkgdir}/usr/bin/peazip"
}
# vim:set ts=2 sw=2 et: