aboutsummaryrefslogtreecommitdiffstats
path: root/main/xvidcore/APKBUILD
blob: 514887cfb5539f708bc89865ae5458ccf240e2d5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xvidcore
pkgver=1.3.2
pkgrel=1
pkgdesc="XviD is an open source MPEG-4 video codec"
url="http://www.xvid.org/"
arch="all"
license="GPL"
subpackages="$pkgname-dev"
depends=
makedepends="nasm"
source="http://downloads.xvid.org/downloads/$pkgname-$pkgver.tar.bz2"

prepare() {
	cd "$srcdir"/$pkgname
	update_config_sub || return 1
}

build() {
	cd "$srcdir"/$pkgname/build/generic
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-assembly \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname/build/generic
	make DESTDIR="$pkgdir" install
	cd "$pkgdir"/usr/lib
	mylib=$(basename libxvidcore.so.*)
	ln -sf ${mylib} libxvidcore.so.4
	ln -sf ${mylib} libxvidcore.so
}
md5sums="34389e980d4f849688f8b1e168f4e2f9  xvidcore-1.3.2.tar.bz2"
sha256sums="d6c11334e1e771f9e4722eff454762325fd0989f6a4217abca296d6770160bf4  xvidcore-1.3.2.tar.bz2"
sha512sums="0b7725314abc1dbe1f0ba4700393c391b8f98589300051ad7ebc5bdef7e87b20f19dcc88c37afbc1dfa117b6c8c1d5051b8f8d263c419e6965c5bc5f0201dc97  xvidcore-1.3.2.tar.bz2"