lib32/lib32-e2fsprogs/PKGBUILD
2011-08-11 10:03:06 +00:00

43 lines
1.2 KiB
Bash

# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=e2fsprogs
pkgname=lib32-e2fsprogs
pkgver=1.41.14
pkgrel=2
pkgdesc="Ext2 filesystem libraries (32-bit)"
arch=(x86_64)
license=('GPL' 'LGPL' 'MIT')
url="http://e2fsprogs.sourceforge.net"
depends=('lib32-util-linux>=2.19.1' $_pkgbasename)
makedepends=('bc' 'gcc-multilib')
source=("http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz")
sha1sums=('24f9364fa3d4c0d7d00cb627b819d0e51055d6c5')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_pkgbasename}-${pkgver}"
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--with-root-prefix="" \
--enable-elf-shlibs \
--disable-{debugfs,imager,resizer,fsck,uuidd,libuuid,libblkid}
make
}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install-libs
rm -rf "${pkgdir}"/usr/{bin,include,share}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}