mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 05:57:14 +08:00
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=alsa-lib
|
|
pkgver=1.0.24.901
|
|
pkgrel=1
|
|
pkgdesc="An alternative implementation of Linux sound support"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.alsa-project.org"
|
|
depends=('glibc')
|
|
optdepends=('python2')
|
|
makedepends=('python2')
|
|
license=('GPL')
|
|
options=(!libtool)
|
|
#source=(ftp://ftp.alsa-project.org/pub/lib/$pkgname-$pkgver.tar.bz2)
|
|
#md5sums=('7cc05f25e1d5b65da8fb3fdcd540f226')
|
|
#sha1sums=('e18a337620f23c15223e5e4a27bf04ca43981fc9')
|
|
|
|
source=("http://chakra.sourceforge.net/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz")
|
|
md5sums=('9ed124442c6af1ad1630e6a4c918f88a')
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
mksource() {
|
|
rm -vRf ${pkgname}-${pkgver}
|
|
git clone git://git.alsa-project.org/${pkgname}.git ${pkgname}-${pkgver}
|
|
rm -vRf ${pkgname}-${pkgver}/.git
|
|
pushd ${pkgname}-${pkgver}
|
|
popd
|
|
tar -cvJf ${pkgname}-${pkgver}.tar.xz ${pkgname}-${pkgver}/*
|
|
md5sum ${pkgname}-${pkgver}.tar.xz
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
# only on git tarballs
|
|
autoreconf -v --force --install
|
|
|
|
./configure --prefix=/usr --with-pythonlibs="-lpthread -lm -ldl -lpython2.7" --with-pythonincludes=-I/usr/include/python2.7
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|