mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 06:37:15 +08:00
e46c7bdb0d
- other rebuilds might be needed
47 lines
1.3 KiB
Bash
47 lines
1.3 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=flac
|
|
pkgver=1.2.1
|
|
pkgrel=6
|
|
pkgdesc="Free Lossless Audio Codec"
|
|
arch=('i686' 'x86_64')
|
|
url="http://flac.sourceforge.net/"
|
|
license=('custom:Xiph' 'LGPL' 'GPL' 'FDL')
|
|
depends=('libogg')
|
|
makedepends=('nasm')
|
|
options=('!libtool' '!makeflags')
|
|
source=(http://downloads.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
|
|
flac-1.2.1-gcc-4.3-includes.patch)
|
|
md5sums=('153c8b15a54da428d1f0fadc756c22c7'
|
|
'b9d245422bbc547b18a72897366bea77')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
patch -Np1 -i "${srcdir}/flac-1.2.1-gcc-4.3-includes.patch"
|
|
./configure --prefix=/usr --mandir=/usr/share/man --enable-shared \
|
|
--disable-sse --disable-rpath --with-pic
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
pkgdesc="Free Lossless Audio Codec"
|
|
optdepends=('xmms: for using the xmms plugin')
|
|
options=('!libtool' '!docs')
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|