blob: 5dc046c0684db0b78cb6778b733ca1d65b01002a (
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.r4.g90b694b
pkgrel=1
pkgdesc="An optimised MPEG Audio Layer 2 (MP2) encoder"
arch=('i686' 'x86_64')
url="https://www.twolame.org/"
license=('LGPL2')
depends=('glibc' 'libsndfile')
makedepends=('git' 'asciidoc' 'doxygen' 'xmlto')
provides=("twolame=$pkgver")
conflicts=('twolame')
options=('staticlibs')
source=("git+https://github.com/njh/twolame.git")
sha256sums=('SKIP')
prepare() {
cd "twolame"
sed -i -e 's|doxygen.png|doxygen.svg|g' "doc/html/Makefile.am"
}
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
}
|