blob: f28ef8e95913d5ecff79e52384e349adbedab981 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $NetBSD: Makefile,v 1.71 2015/11/24 15:56:22 asau Exp $
VERSION_DATE= 2015.11.10
DISTNAME= youtube-dl-${VERSION_DATE}
PKGNAME= youtube-dl-${VERSION_DATE:S/.//S/.//}
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://youtube-dl.org/downloads/${VERSION_DATE}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://rg3.github.io/youtube-dl/
COMMENT= Download videos from youtube.com
LICENSE= public-domain
# Unfortunately at the moment upstream youtube-dl does not provide a changelog.
# When updating net/youtube-dl you can find a complete list of changes here:
# https://github.com/rg3/youtube-dl/compare/${OLD_VERSION_DATE}...${NEW_VERSION_DATE}
# ...where OLD_VERSION_DATE is the previous VERSION_DATE and NEW_VERSION_DATE is
# the version you are going to commit.
USE_LANGUAGES= # none
USE_TOOLS+= gmake
NO_BUILD= yes
WRKSRC= ${WRKDIR}/youtube-dl
MAKE_FLAGS+= PREFIX=${PREFIX} MANDIR=${PREFIX}/${PKGMANDIR} \
BASHCOMPDIR=${PREFIX}/share/bash-completion/completions \
FISHCOMPDIR=${PREFIX}/share/fish/completions
INSTALLATION_DIRS= share/youtube-dl
CHECK_INTERPRETER_SKIP= share/youtube-dl/youtube-dl
post-patch:
${ECHO} '#!/bin/sh' > ${WRKSRC}/youtube-dl.sh
${ECHO} 'exec ${PYTHONBIN} ${PREFIX}/share/youtube-dl/youtube-dl "$$@"' >> ${WRKSRC}/youtube-dl.sh
post-install:
mv ${DESTDIR}${PREFIX}/bin/youtube-dl ${DESTDIR}${PREFIX}/share/youtube-dl
${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl.sh ${DESTDIR}${PREFIX}/bin/youtube-dl
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|