[arch-commits] Commit in youtube-dl/trunk (PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Sun Jul 12 10:25:08 UTC 2020


    Date: Sunday, July 12, 2020 @ 10:25:07
  Author: diabonas
Revision: 663305

upgpkg: youtube-dl 2020.06.16.1-2: make pyc files reproducible

Ensure that the package is reproducible by making sure that the order of
elements in sets and dictionaries in the compiled Python files is deterministic. 

Modified:
  youtube-dl/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-12 09:44:57 UTC (rev 663304)
+++ PKGBUILD	2020-07-12 10:25:07 UTC (rev 663305)
@@ -4,7 +4,7 @@
 
 pkgname=youtube-dl
 pkgver=2020.06.16.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A small command-line program to download videos from YouTube.com and a few more sites"
 arch=('any')
 url="https://ytdl-org.github.io/youtube-dl/"
@@ -26,9 +26,15 @@
   sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py
 }
 
+build() {
+  cd ${pkgname}
+  export PYTHONHASHSEED=0
+  python setup.py build
+}
+
 package() {
   cd ${pkgname}
-  python setup.py install --root="${pkgdir}/" --optimize=1
+  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
   mv "${pkgdir}/usr/share/bash-completion/completions/youtube-dl.bash-completion" \
      "${pkgdir}/usr/share/bash-completion/completions/youtube-dl"
   install -Dm644 youtube-dl.zsh "${pkgdir}/usr/share/zsh/site-functions/_youtube-dl"



More information about the arch-commits mailing list