summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ef029a9ba47fc4afb21fabdbe3ca06a3392393b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=twolame-git
pkgver=0.3.13.r100.gfb60b2e
pkgrel=1
pkgdesc="An optimised MPEG Audio Layer 2 (MP2) encoder"
arch=('i686' 'x86_64')
url="http://www.twolame.org/"
license=('LGPL2')
depends=('glibc' 'libsndfile')
makedepends=('git')
provides=('twolame')
conflicts=('twolame')
options=('staticlibs')
source=("git+https://github.com/njh/twolame.git")
sha256sums=('SKIP')


pkgver() {
  cd "twolame"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "twolame"

  NOCONFIGURE=1 ./autogen.sh
  ./configure --prefix="/usr" --disable-maintainer-mode
  make
}

check() {
  cd "twolame"

  make check
}

package() {
  cd "twolame"

  make DESTDIR="$pkgdir" install
}