Skip to content

Instantly share code, notes, and snippets.

@shuLhan
Created June 25, 2013 01:27
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 shuLhan/5855209 to your computer and use it in GitHub Desktop.
Save shuLhan/5855209 to your computer and use it in GitHub Desktop.
PKGBUILD for youtube-dl-git without haskell-pandoc. If you don't mind missing manual page and README.txt you can use this PKGBUILD to install youtube-dl without haskell-pandoc dependency.
_pkgname=youtube-dl
pkgname=${_pkgname}-git
pkgver=1653
pkgrel=1
pkgdesc='Small command-line program to download videos from YouTube.com and other video sites'
arch=('i686' 'x86_64')
url="http://rg3.github.com/${_pkgname}"
license=('custom')
depends=('python2')
#makedepends=('git' 'zip' 'sed' 'haskell-pandoc')
makedepends=('git' 'zip' 'sed')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git://github.com/rg3/${_pkgname}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git rev-list --count HEAD
}
build() {
cd "$srcdir/$_pkgname"
sed -i 's:/usr/bin/env python:/usr/bin/env python2:' Makefile
sed -i 's/python -m /python2 -m /' Makefile
sed -i 's/pandoc/#pandoc/' Makefile
make
}
package() {
cd "$srcdir/$_pkgname"
mkdir -p "${pkgdir}/usr/bin"
cp -p youtube-dl "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
grep -i license youtube_dl/__init__.py > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
@jmckernon
Copy link

I was still able to get this to work (not by using it directly, but by applying the changes to the current PKGBUILD. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment