blob: 5594bcc6262289589e3a5ac5f9f18e070b0042f7 (
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
52
53
54
|
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname=lib32-libvorbis-git
pkgver=1.3.7
pkgrel=1
pkgdesc='Vorbis codec library (32-bit)'
arch=('x86_64')
url='https://www.xiph.org/ogg/vorbis/'
license=('BSD')
depends=('lib32-libogg' 'libvorbis')
provides=('lib32-libvorbis' 'libvorbis.so' 'libvorbisenc.so' 'libvorbisfile.so')
conflicts=(lib32-libvorbis)
source=("git+https://gitlab.xiph.org/xiph/vorbis.git")
sha256sums=('SKIP')
pkgver() {
cd vorbis
git describe --tags | sed 's/-/+/g'
}
build() {
cd vorbis
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
./autogen.sh
./configure \
--prefix='/usr' \
--libdir='/usr/lib32' \
--disable-static
make
}
#check() {
# cd vorbis
# make -j1 check
#}
package() {
cd vorbis
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
install -d "$pkgdir/usr/share/licenses"
ln -s libvorbis "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: ts=2 sw=2 et:
|