summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-07-13 18:31:25 (GMT)
committerBob Igo <bob@stormlogic.com>2009-07-13 18:31:25 (GMT)
commit8318951c942e2619e4c84315f3e49364b444df79 (patch)
tree8653b2d5c59dadcd2fe005e1dd9faa1fec3ca332
parent0f86eafff7f08b67668b380b9cd32090d1514d3d (diff)
downloadlinhes_pkgbuild-8318951c942e2619e4c84315f3e49364b444df79.zip
linhes_pkgbuild-8318951c942e2619e4c84315f3e49364b444df79.tar.gz
linhes_pkgbuild-8318951c942e2619e4c84315f3e49364b444df79.tar.bz2
preliminary version of mplayer wrapper; needs further integration work
-rw-r--r--abs/core-testing/mplayer-wrapper/PKGBUILD9
-rw-r--r--abs/core-testing/mplayer-wrapper/mplayer-wrapper.install38
-rwxr-xr-xabs/core-testing/mplayer-wrapper/mplayer-wrapper.pl (renamed from abs/core-testing/mplayer-wrapper/bin/mplayer-wrapper.pl)5
3 files changed, 49 insertions, 3 deletions
diff --git a/abs/core-testing/mplayer-wrapper/PKGBUILD b/abs/core-testing/mplayer-wrapper/PKGBUILD
index 82f1082..3fb4124 100644
--- a/abs/core-testing/mplayer-wrapper/PKGBUILD
+++ b/abs/core-testing/mplayer-wrapper/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=mplayer-wrapper
-pkgver=1
+pkgver=1
pkgrel=1
pkgdesc="wrapper for mplayer and mplayer derivatives"
arch=('i686' 'x86_64')
@@ -10,7 +10,12 @@ source=(mplayer-wrapper.pl)
license=('GPL2')
+install=mplayer-wrapper.install
build() {
+ LH_ROOT=/usr/LH
+ mkdir -p $startdir/pkg/$LH_ROOT/bin/
+
cd $startdir
- install -m0777 -D bin/* $startdir/pkg/usr/LH/bin/
+ # executables
+ install -m0755 -D *.pl $startdir/pkg/$LH_ROOT/bin/
}
diff --git a/abs/core-testing/mplayer-wrapper/mplayer-wrapper.install b/abs/core-testing/mplayer-wrapper/mplayer-wrapper.install
new file mode 100644
index 0000000..18f1b75
--- /dev/null
+++ b/abs/core-testing/mplayer-wrapper/mplayer-wrapper.install
@@ -0,0 +1,38 @@
+# This is a default template for a post-install scriptlet. You can
+# remove any functions you don't need (and this header).
+
+# arg 1: the new package version
+pre_install() {
+/bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+/bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ /bin/true
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+op=$1
+shift
+$op $*
diff --git a/abs/core-testing/mplayer-wrapper/bin/mplayer-wrapper.pl b/abs/core-testing/mplayer-wrapper/mplayer-wrapper.pl
index 583786d..9977741 100755
--- a/abs/core-testing/mplayer-wrapper/bin/mplayer-wrapper.pl
+++ b/abs/core-testing/mplayer-wrapper/mplayer-wrapper.pl
@@ -66,11 +66,14 @@ sub translate_parameters() {
return map(&translate($_), @parameters);
} else {
+ # currently, all other players used by this wrapper work with mplayer parameters
return @parameters;
}
}
-# Returns an array of dynamic parameters based in part on the media.
+# Returns an array of dynamic parameters based on the media type,
+# the presence of special playback decoding hardware, and the
+# general capability of the CPU.
sub dynamic_parameters () {
my($mediafile)=@_;
return(); # ??? empty for now; further development required