mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
main/libdvdnav: modernise, fix license, add check
This commit is contained in:
parent
2bffca144e
commit
a2149db317
@ -2,46 +2,37 @@
|
||||
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
||||
pkgname=libdvdnav
|
||||
pkgver=5.0.3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="a library for sophisticated DVD navigation features"
|
||||
url="http://dvdnav.mplayerhq.hu/"
|
||||
arch="all"
|
||||
license="GPL"
|
||||
license="GPL-2.0+"
|
||||
depends=""
|
||||
depends_dev="libdvdread-dev>=5.0.3"
|
||||
makedepends="$depends_dev"
|
||||
install=""
|
||||
subpackages="$pkgname-dev"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
source="http://download.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
|
||||
|
||||
_builddir="$srcdir"/libdvdnav-$pkgver
|
||||
prepare() {
|
||||
local i
|
||||
cd "$_builddir"
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
|| return 1
|
||||
make || return 1
|
||||
--enable-shared
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
md5sums="e9ea4de3bd8f204e61301d407d09f033 libdvdnav-5.0.3.tar.bz2"
|
||||
sha256sums="5097023e3d2b36944c763f1df707ee06b19dc639b2b68fb30113a5f2cbf60b6d libdvdnav-5.0.3.tar.bz2"
|
||||
sha512sums="d6d0519f654649bd65b3029224191e7d6acc893d94e8578e435d77b75327584e9f44410a062c1fc60c6211f5bea6b3971228d84de595808733ab7356980e0123 libdvdnav-5.0.3.tar.bz2"
|
||||
|
Loading…
Reference in New Issue
Block a user