summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6239eee95ce7325cfd3c25d451c454f7c948f8ab (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
44
45
46
47
48
49
50
51
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=twolame-git
pkgver=0.4.0.r6.g6fced85
pkgrel=1
pkgdesc="An optimised MPEG Audio Layer 2 (MP2) encoder"
arch=('i686' 'x86_64')
url="https://www.twolame.org/"
license=('LGPL-2.1-or-later')
depends=('glibc' 'libsndfile')
makedepends=('git' 'asciidoc' 'doxygen' 'xmlto')
provides=("twolame=$pkgver" 'libtwolame.so')
conflicts=('twolame')
options=('staticlibs')
source=("git+https://github.com/njh/twolame.git")
sha256sums=('SKIP')


prepare() {
  cd "twolame"

  sed -i 's|-Werror||g' "configure.ac"
}

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" \
    --enable-maintainer-mode
  make
}

check() {
  cd "twolame"

  #make check
}

package() {
  cd "twolame"

  make DESTDIR="$pkgdir" install
}