APKBUILD 702 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xvidcore
3 4
pkgver=1.2.2
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6 7 8 9 10 11 12
pkgdesc="XviD is an open source MPEG-4 video codec"
url="http://www.xvid.org/"
license="GPL"
subpackages="$pkgname-dev"
depends=
makedepends="nasm"
source="http://downloads.xvid.org/downloads/$pkgname-$pkgver.tar.bz2"

13
build() {
Natanael Copa's avatar
Natanael Copa committed
14
	cd "$srcdir"/$pkgname/build/generic
15 16
	./configure --prefix=/usr \
		--disable-assembly
Natanael Copa's avatar
Natanael Copa committed
17
	make || return 1
18 19 20 21
}

package() {
	cd "$srcdir"/$pkgname/build/generic
Natanael Copa's avatar
Natanael Copa committed
22 23 24 25 26 27
	make DESTDIR="$pkgdir" install
	cd "$pkgdir"/usr/lib
	mylib=$(basename libxvidcore.so.*)
	ln -sf ${mylib} libxvidcore.so.4
	ln -sf ${mylib} libxvidcore.so
}
28
md5sums="6a3473a12c8a1fa7bdc2b5cb829fab58  xvidcore-1.2.2.tar.bz2"