summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e9a3d9cae638155827f03754b48d624213d4b19 (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: Soukyuu <chrno-spheredΘhotmail·com>
# Contributor: revel <revelΘmuub·net>
# Contributor: Stephen Caraher <moskvax@gmail.com>
# Contributor: Uli Armbruster <uli_armbrusterΘweb·de>
# Contributor: Robert Gregor <gimpΘpop·de>

pkgname=libvorbis-aotuv-lancer
_srcname=libvorbis-aotuv
pkgver=1.3.6
pkgrel=0
_aotuv_ver=b6.03
pkgdesc='A fork of libvorbis intended to provide better quality sound at low to medium bitrates, with lancer patches to improve performance'
arch=('i686' 'x86_64')
url='https://www.hydrogenaud.io/forums/index.php?showtopic=109766'
license=('BSD')
depends=('libogg')
conflicts=('libvorbis' 'libvorbis-aotuv')
provides=('libvorbis=1.3.6' 'libvorbisfile.so' 'libvorbis.so' 'libvorbisenc.so')
source=("http://downloads.xiph.org/releases/vorbis/libvorbis-${pkgver}.tar.gz"
        "https://freac.org/patches/libvorbis-${pkgver}-aotuv-${_aotuv_ver}.patch"
        "https://freac.org/patches/libvorbis-${pkgver}-aotuv-${_aotuv_ver}-lancer.patch")
sha256sums=('6ed40e0241089a42c48604dc00e362beee00036af2d8b3f46338031c9e0351cb'
            '1efd443bb7a32562f30ae778983e4fd31f07c612e08e49d536429443107bb946'
            'cb510d6d7222599eed0df8ea8708eb4cb3371a617e1a07eac83d723185ae1ad9')
prepare() {
	cd "libvorbis-${pkgver}"
	chmod +x configure
	
	# apply aotuv patches
	patch -p1 -i "${srcdir}/libvorbis-${pkgver}-aotuv-${_aotuv_ver}.patch"
	
	# apply lancer patches
	patch -p1 -i "${srcdir}/libvorbis-${pkgver}-aotuv-${_aotuv_ver}-lancer.patch"
}

build() {
	cd "libvorbis-${pkgver}"
	./configure --prefix=/usr --enable-shared --disable-static
	make
}

check() {
	cd "libvorbis-${pkgver}"
	make -j1 check
}

package() {
	cd "libvorbis-${pkgver}"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}