upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / lame / trunk / PKGBUILD
blob8564ba45ee64e28839761a2f960ee060c69fef74
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 source=(
17   https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
18   $pkgname.pc.in
20 sha256sums=('ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e'
21             '5b746f51caeb202ae4fe3f09fc2db0b38096598d9496945d7fdfdd23c5868e93')
22 b2sums=('6954d30cfd3951ea07762ba5dd7ff27038b78455f423099a225ebf748abddf9970e444456ca5a6179bd381e2205b32293392cb757c203901674860710fe2c183'
23         '1a56722d730f0dff06fe756b089239d28781ec0300cb90fb014d25a7f92d40febff6ba18b621b6cbc4af7babfea90c7382e34787271b1cf2d82d239416837776')
25 prepare() {
26   sed -e "s/VERSION/$pkgver/" $pkgname.pc.in > $pkgname.pc
29 build() {
30   cd $pkgname-$pkgver
32   ./configure \
33     --prefix='/usr' \
34     --enable-nasm \
35     --enable-mp3rtp \
36     --enable-shared
37   make
40 check() {
41   make test -C $pkgname-$pkgver
44 package() {
45   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
46   install -vDm 644 $pkgname.pc -t "$pkgdir/usr/lib/pkgconfig/"
48 # vim: ts=2 sw=2 et: