mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 00:57:32 +08:00
32 lines
1.0 KiB
Bash
32 lines
1.0 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=a52dec
|
|
pkgver=0.7.4
|
|
pkgrel=4
|
|
pkgdesc="liba52 is a free library for decoding ATSC A/52 streams."
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL2')
|
|
depends=('glibc')
|
|
options=(!libtool)
|
|
source=(http://liba52.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz
|
|
a52dec-0.7.4-build.patch)
|
|
url="http://liba52.sourceforge.net/"
|
|
md5sums=('caa9f5bc44232dc8aeea773fea56be80' 'fa16f224a7dceb7613824380abef0052')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
patch -Np1 -i ${srcdir}/a52dec-0.7.4-build.patch || return 1
|
|
./bootstrap || return 1
|
|
./configure --prefix=/usr --enable-shared || return 1
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
install -m644 liba52/a52_internal.h $startdir/pkg/usr/include/a52dec/ || return 1
|
|
}
|