From e0d09db33f66af3e5984c9431f7db9e6b982dcbb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 29 Jun 2013 08:46:10 +0200 Subject: [PATCH] New package: handbrake-0.9.9 (closes #49). --- srcpkgs/handbrake-cli | 1 + srcpkgs/handbrake/template | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 120000 srcpkgs/handbrake-cli create mode 100644 srcpkgs/handbrake/template diff --git a/srcpkgs/handbrake-cli b/srcpkgs/handbrake-cli new file mode 120000 index 00000000000..abe3cc13f20 --- /dev/null +++ b/srcpkgs/handbrake-cli @@ -0,0 +1 @@ +handbrake \ No newline at end of file diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template new file mode 100644 index 00000000000..14249d0dd60 --- /dev/null +++ b/srcpkgs/handbrake/template @@ -0,0 +1,55 @@ +# Template file for 'handbrake' +pkgname=handbrake +version=0.9.9 +revision=1 +wrksrc="HandBrake-${version}" +hostmakedepends="pkg-config intltool automake libtool python yasm wget gettext-devel" +makedepends="zlib-devel bzip2-devel libnotify-devel gtk+3-devel ncurses-devel + gst-plugins-base-devel gst-plugins-good webkitgtk-devel + dbus-glib-devel fribidi-devel libass-devel fontconfig-devel libxml2-devel + libogg-devel libtheora-devel libsamplerate-devel libbluray-devel x264-devel + hicolor-icon-theme desktop-file-utils" +short_desc="Multithreaded video transcoder" +maintainer="Juan RP " +license="GPL-3" +homepage="http://handbrake.fr/" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/HandBrake-${version}.tar.bz2" +checksum=a71dd774104cda00cfb51a813550351d638253791f2f419d04a66f3158a835b3 + +do_configure() { + sed -e '/MODULES += contrib\/libbluray/d' \ + -e '/MODULES += contrib\/x264/d' \ + -i make/include/main.defs + + cd gtk + sed -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \ + -e '/AM_PROG_CC_STDC/d' -i configure.ac + autoreconf -vi + + cd ${wrksrc} + ./configure --prefix=/usr --force --disable-gtk-update-checks +} + +do_build() { + cd build + make ${makejobs} +} + +do_install() { + cd build + make DESTDIR=${DESTDIR} install +} + +handbrake-cli_package() { + short_desc+=" - CLI utility" + pkg_install() { + vmove usr/bin/HandBrakeCLI + } +} + +handbrake_package() { + depends="gst-plugins-good" + pkg_install() { + vmove all + } +}