Created
June 25, 2013 01:27
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was still able to get this to work (not by using it directly, but by applying the changes to the current PKGBUILD. Thanks!