summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfx2016-01-07 19:10:20 +0100
committersfx2016-01-07 19:10:20 +0100
commit58810af7e1fc5132cd6a409ca08fbddfd8623ada (patch)
treee7a4a1f3d0ed28d52dafc045ab17e55f52c15c24
parent24ec1f87295d0927091a463dda2b7375c95e7db2 (diff)
downloadaur-58810af7e1fc5132cd6a409ca08fbddfd8623ada.tar.gz
Allow updated build when previous source was already downloaded
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2505afdf6a3..84a6aaf77ea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = youtube-dl-git
pkgdesc = A small command-line program to download videos from YouTube.com and a few more sites - git version
- pkgver = 2015.12.31.d5f6429
+ pkgver = 2016.01.07.2e02ecb
pkgrel = 1
url = http://rg3.github.io/youtube-dl
arch = any
@@ -11,7 +11,7 @@ pkgbase = youtube-dl-git
optdepends = ffmpeg: for video post-processing
provides = youtube-dl
conflicts = youtube-dl
- source = https://github.com/rg3/youtube-dl/archive/master.zip
+ source = youtube-dl-git-2016.01.07.2e02ecb.zip::https://github.com/rg3/youtube-dl/archive/master.zip
sha512sums = SKIP
pkgname = youtube-dl-git
diff --git a/PKGBUILD b/PKGBUILD
index 03cc95e8e1a..2477aab4f14 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ _name=youtube-dl
_branch=master
pkgname=$_name-git
-pkgver=2015.12.31.d5f6429
+pkgver=2016.01.07.2e02ecb
pkgrel=1
pkgdesc='A small command-line program to download videos from YouTube.com and a few more sites - git version'
@@ -22,15 +22,15 @@ optdepends=('ffmpeg: for video post-processing')
provides=("$_name")
conflicts=("$_name")
-source=("https://github.com/rg3/$_name/archive/$_branch.zip")
-sha512sums=(SKIP)
-
pkgver() {
DATE=$(date +%Y.%m.%d)
HASH=$(git ls-remote -h https://github.com/rg3/$_name $_branch | cut -c1-7)
echo $DATE.$HASH
}
+source=("$pkgname-$(pkgver).zip::https://github.com/rg3/$_name/archive/$_branch.zip")
+sha512sums=(SKIP)
+
prepare() {
cd $_name-$_branch
sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py