2022-01-05 16:40:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.245 2022/01/05 15:41:19 wiz Exp $
|
2007-09-05 23:14:30 +02:00
|
|
|
|
2017-09-16 22:41:15 +02:00
|
|
|
# XXX: VERSION_DATE can contains also an optional part that indicates
|
|
|
|
# XXX: possible same day revisions. PKGNAME preserves that dotted part as is.
|
2021-12-16 20:12:09 +01:00
|
|
|
VERSION_DATE= 2021.12.17
|
2013-07-20 07:07:15 +02:00
|
|
|
DISTNAME= youtube-dl-${VERSION_DATE}
|
2017-07-18 20:56:30 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/.//:S/.//}
|
2022-01-05 16:40:56 +01:00
|
|
|
PKGREVISION= 2
|
2007-09-05 23:14:30 +02:00
|
|
|
CATEGORIES= net
|
2019-03-26 00:13:07 +01:00
|
|
|
MASTER_SITES= https://youtube-dl.org/downloads/${VERSION_DATE}/
|
2007-09-05 23:14:30 +02:00
|
|
|
|
2016-02-25 20:07:59 +01:00
|
|
|
MAINTAINER= leot@NetBSD.org
|
2019-03-26 00:13:07 +01:00
|
|
|
HOMEPAGE= https://ytdl-org.github.io/youtube-dl/
|
2007-09-05 23:14:30 +02:00
|
|
|
COMMENT= Download videos from youtube.com
|
2009-07-19 13:35:41 +02:00
|
|
|
LICENSE= public-domain
|
2007-09-05 23:14:30 +02:00
|
|
|
|
2014-01-27 23:40:27 +01:00
|
|
|
USE_LANGUAGES= # none
|
2016-01-06 10:47:42 +01:00
|
|
|
EGG_NAME= youtube_dl-${VERSION_DATE:S/.0/./g}
|
2014-01-27 23:40:27 +01:00
|
|
|
WRKSRC= ${WRKDIR}/youtube-dl
|
2007-09-05 23:14:30 +02:00
|
|
|
|
2022-01-05 16:40:56 +01:00
|
|
|
USE_PKG_RESOURCES= yes
|
|
|
|
|
2016-04-01 12:50:27 +02:00
|
|
|
SUBST_CLASSES+= pkgmandir
|
|
|
|
SUBST_STAGE.pkgmandir= pre-configure
|
|
|
|
SUBST_FILES.pkgmandir= setup.py
|
|
|
|
SUBST_VARS.pkgmandir= PKGMANDIR
|
|
|
|
|
2021-03-11 11:02:19 +01:00
|
|
|
post-install:
|
|
|
|
${MV} ${DESTDIR}${PREFIX}/share/bash-completion/completions/youtube-dl.bash-completion \
|
|
|
|
${DESTDIR}${PREFIX}/share/bash-completion/completions/youtube-dl
|
|
|
|
|
2015-12-10 12:11:16 +01:00
|
|
|
.include "../../lang/python/egg.mk"
|
2007-09-05 23:14:30 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|