Commits

turkbits committed b0f3a6a

adding libdca package

Comments (0)

Files changed (1)

+# Maintainer: turkbits <turkbits@turkbits.net>
+
+version=0.0.5
+description="Free library for decoding DTS Coherent Acoustics streams"
+depends=('bash')
+sources=("http://download.videolan.org/pub/videolan/libdca/$version/libdca-$version.tar.bz2")
+
+src_compile() {
+  cd "$SOURCE_DIR/libdca-$version"
+  ./configure --prefix=/usr --mandir=/usr/share/man
+  make
+}
+
+src_install() {
+  cd "$SOURCE_DIR/libdca-$version"
+  make DESTDIR="$INSTALL_DIR" install
+
+  rm -f "$INSTALL_DIR/usr/share/man/man1"/{extract_dts,dtsdec}.1
+  ln -s dcadec.1.gz "$INSTALL_DIR/usr/share/man/man1/dtsdec.1.gz"
+  ln -s extract_dca.1.gz "$INSTALL_DIR/usr/share/man/man1/extract_dts.1.gz"
+  # remove dangling symlink
+  rm "$INSTALL_DIR/usr/lib/libdts.a"
+}