mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
37 lines
984 B
Bash
37 lines
984 B
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=alsa-oss
|
|
pkgname=lib32-${_pkgbasename}
|
|
pkgver=1.0.25
|
|
pkgrel=2
|
|
pkgdesc="OSS compatibility library (32 bit)"
|
|
arch=(x86_64)
|
|
license=('GPL')
|
|
url="http://www.alsa-project.org"
|
|
options=(!libtool)
|
|
depends=('lib32-glibc' 'lib32-alsa-lib' 'alsa-oss')
|
|
#source=(ftp://ftp.alsa-project.org/pub/oss-lib/${_pkgbasename}-$pkgver.tar.bz2)
|
|
source=(http://alsa.cybermirror.org/oss-lib/${_pkgbasename}-$pkgver.tar.bz2)
|
|
md5sums=('922ea177db15c72f1b5037181c73f934')
|
|
|
|
build() {
|
|
cd $srcdir/${_pkgbasename}-$pkgver
|
|
|
|
export CC='gcc -m32'
|
|
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
|
|
./configure --prefix=/usr --libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/${_pkgbasename}-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# Clean up lib32 package
|
|
rm -rf "${pkgdir}"/usr/{bin,include,share}
|
|
}
|