desktop/handbrake-cli/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

# cpntributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
pkgname=handbrake-cli
2016-04-14 07:56:25 +08:00
pkgver=0.10.5
pkgrel=1
2014-11-25 19:03:57 +08:00
pkgdesc="Multithreaded video transcoder (CLI)"
2013-05-30 04:33:19 +08:00
arch=('x86_64')
2011-02-22 06:36:19 +08:00
url="http://handbrake.fr/"
license=('GPL')
depends=('bzip2' 'gcc-libs' 'zlib' 'fribidi' 'libass' 'lame' 'libxml2' 'libtheora' 'libsamplerate' 'libbluray' 'x264' 'libdvdnav' 'libx264')
2014-11-25 19:03:57 +08:00
makedepends=('intltool' 'python2' 'yasm' 'wget' 'libnotify' 'gst-plugins-base' 'dbus-glib')
2015-03-22 15:53:58 +08:00
source=("https://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2")
categories=('multimedia')
2016-04-14 07:56:25 +08:00
sha256sums=('fb9230dd121b456f6829d1d25ac8bbf76e503b51c4efc70f0a7fd2bb8607e2f0')
2014-11-25 19:03:57 +08:00
prepare() {
2011-02-22 06:36:19 +08:00
cd "$srcdir/HandBrake-$pkgver"
# Use more system libs
# We had ffmpeg here as well but it broke PGS subtitle processing
# https://forum.handbrake.fr/viewtopic.php?f=13&t=27581
sed -i \
-e '/MODULES += contrib\/libbluray/d' \
2015-03-22 15:53:58 +08:00
-e '/MODULES += contrib\/libdvdnav/d' \
-e '/MODULES += contrib\/libdvdread/d' \
make/include/main.defs
2014-11-25 19:03:57 +08:00
}
build() {
cd "$srcdir/HandBrake-$pkgver"
./configure --prefix=/usr \
--force \
--disable-gtk \
2014-11-25 19:03:57 +08:00
--disable-gtk-update-checks
2011-02-22 06:36:19 +08:00
cd build
make
}
package() {
2011-02-22 06:36:19 +08:00
cd "$srcdir/HandBrake-$pkgver/build"
install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
2011-02-22 06:36:19 +08:00
}