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>
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
||||||
pkgname=libdvdnav
|
pkgname=libdvdnav
|
||||||
pkgver=5.0.3
|
pkgver=5.0.3
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="a library for sophisticated DVD navigation features"
|
pkgdesc="a library for sophisticated DVD navigation features"
|
||||||
url="http://dvdnav.mplayerhq.hu/"
|
url="http://dvdnav.mplayerhq.hu/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="GPL"
|
license="GPL-2.0+"
|
||||||
depends=""
|
depends=""
|
||||||
depends_dev="libdvdread-dev>=5.0.3"
|
depends_dev="libdvdread-dev>=5.0.3"
|
||||||
makedepends="$depends_dev"
|
makedepends="$depends_dev"
|
||||||
install=""
|
install=""
|
||||||
subpackages="$pkgname-dev"
|
subpackages="$pkgname-dev $pkgname-doc"
|
||||||
source="http://download.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
|
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() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
./configure \
|
./configure \
|
||||||
--build=$CBUILD \
|
--build=$CBUILD \
|
||||||
--host=$CHOST \
|
--host=$CHOST \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared \
|
--enable-shared
|
||||||
|| return 1
|
make
|
||||||
make || return 1
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make check
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
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"
|
sha512sums="d6d0519f654649bd65b3029224191e7d6acc893d94e8578e435d77b75327584e9f44410a062c1fc60c6211f5bea6b3971228d84de595808733ab7356980e0123 libdvdnav-5.0.3.tar.bz2"
|
||||||
|
Loading…
Reference in New Issue
Block a user