Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2014 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/11510204 to your computer and use it in GitHub Desktop.
Save anonymous/11510204 to your computer and use it in GitHub Desktop.
Pkgfile
# Description: An open-source, GPL-licensed, multiplatform and multithreaded DVD to MPEG-4 converter
# URL: http://handbrake.fr/
# Maintainer: Chris Farrell, timcowchip at gmail dot com
# Depends on: faac faad2 ffmpeg gudev intltool libdvdnav libmpeg2 libnotify libsamplerate
name=handbrake
version=0.9.9
release=1
source=(http://downloads.sourceforge.net/project/handbrake/$version/HandBrake-$version.tar.bz2)
build() {
cd HandBrake-$version
sed -i \
-e '/MODULES += contrib\/libbluray/d' \
-e '/MODULES += contrib\/x264/d' \
make/include/main.defs
cd gtk
sed -i \
-e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
-e '/AM_PROG_CC_STDC/d' \
-e 's/$pkg_gudev"/gmodule-2.0 $pkg_gudev"/' \
configure.ac
autoreconf -vi
cd -
./configure \
--prefix=/usr \
--force \
--disable-gtk-update-checks
cd build
make
make DESTDIR=$PKG install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment