diff options
Diffstat (limited to 'main/libdvbcsa/APKBUILD')
-rw-r--r-- | main/libdvbcsa/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/libdvbcsa/APKBUILD b/main/libdvbcsa/APKBUILD new file mode 100644 index 0000000000..deb48b6e3a --- /dev/null +++ b/main/libdvbcsa/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=libdvbcsa +pkgver=1.1.0 +pkgrel=0 +pkgdesc="a free implementation of the DVB Common Scrambling Algorithm" +url="http://www.videolan.org/developers/libdvbcsa.html" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://download.videolan.org/pub/videolan/libdvbcsa/$pkgver/libdvbcsa-$pkgver.tar.gz" + +_builddir="$srcdir"/libdvbcsa-$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" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="478ab1ca56ca58d2667da6ce22f74e39 libdvbcsa-1.1.0.tar.gz" |