# HG changeset patch # User Pascal Bellard # Date 1370339478 -7200 # Node ID 5e2886317a11daa919f5f15b8af3dfc0121dce8c # Parent 662b600e1688c7528ff4f545c3121059a5a1f977 Add get-libaacs diff -r 662b600e1688 -r 5e2886317a11 get-libaacs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-libaacs/receipt Tue Jun 04 11:51:18 2013 +0200 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="get-libaacs" +VERSION="1.00" +CATEGORY="non-free" +SHORT_DESC="Get a library to play encrypted blu-ray." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://vlc-bluray.whoknowsmy.name/" +TAGS="bluray" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/get-libaacs $fs/usr/bin +} + diff -r 662b600e1688 -r 5e2886317a11 get-libaacs/stuff/get-libaacs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-libaacs/stuff/get-libaacs Tue Jun 04 11:51:18 2013 +0200 @@ -0,0 +1,83 @@ +#!/bin/sh -e + +PACKAGE="libaacs" +VERSION="1.0" +WEB_SITE="http://vlc-bluray.whoknowsmy.name/" +CATEGORY="non-free" +SUGGESTED="vlc" +SHORT_DESC="A library to play encrypted blu-ray" +MAINTAINER="nobody@slitaz.org" + +ROOT="$1" +[ -d "$ROOT" ] || ROOT="" + +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please type 'su' and root password to become super-user.\n" + exit 0 +fi + +if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then + [ -n "$ROOT" ] && exit 1 + tazpkg remove $PACKAGE + [ -d /var/lib/tazpkg/installed/$PACKAGE ] && exit 1 +fi + +TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM +CUR_DIR=$(pwd) +mkdir -p $TMP_DIR && cd $TMP_DIR + +for i in KEYDB.cfg linux32/libaacs.so.0 ; do + wget ${WEB_SITE}files/$i + [ -s $(basename $i) ] && continue + cd $CUR_DIR + rm -rf $TMP_DIR + echo "Could not download $(basename $i) from ${WEB_SITE}files/$i. Exiting." + exit 1 +done + +mkdir -p $PACKAGE-$VERSION/fs/usr/lib $PACKAGE-$VERSION/fs/etc/skel/.config/aacs +mv libaacs.so.0 $PACKAGE-$VERSION/fs/usr/lib +mv KEYDB.cfg $PACKAGE-$VERSION/fs/etc/skel/.config/aacs + +cat > $PACKAGE-$VERSION/receipt <