archrelease: copy trunk to extra-x86_64
[arch-packages.git] / lame / repos / extra-x86_64 / PKGBUILD
blobfcaea2882abdca80add341a06508d6bb0adbcfc0
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor:  Ionut Biru <ibiru@archlinux.org>
4 # Contributor: Hugo Doria <hugo@archlinux.org>
6 pkgname=lame
7 pkgver=3.100
8 pkgrel=4
9 pkgdesc='A high quality MPEG Audio Layer III (MP3) encoder'
10 arch=(x86_64)
11 url=http://lame.sourceforge.net/
12 license=(LGPL)
13 depends=(ncurses)
14 makedepends=(nasm)
15 provides=(libmp3lame.so)
16 options=(debug)
17 source=(
18   https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
19   $pkgname.pc.in
21 sha256sums=('ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e'
22             '5b746f51caeb202ae4fe3f09fc2db0b38096598d9496945d7fdfdd23c5868e93')
23 b2sums=('6954d30cfd3951ea07762ba5dd7ff27038b78455f423099a225ebf748abddf9970e444456ca5a6179bd381e2205b32293392cb757c203901674860710fe2c183'
24         '1a56722d730f0dff06fe756b089239d28781ec0300cb90fb014d25a7f92d40febff6ba18b621b6cbc4af7babfea90c7382e34787271b1cf2d82d239416837776')
26 prepare() {
27   sed -e "s/VERSION/$pkgver/" $pkgname.pc.in > $pkgname.pc
30 build() {
31   cd $pkgname-$pkgver
33   ./configure \
34     --prefix='/usr' \
35     --enable-nasm \
36     --enable-mp3rtp \
37     --enable-shared
38   make
41 check() {
42   make test -C $pkgname-$pkgver
45 package() {
46   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
47   install -vDm 644 $pkgname.pc -t "$pkgdir/usr/lib/pkgconfig/"
49 # vim: ts=2 sw=2 et: