[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: uscan: git repo without releases/tags



On Thu, 2019-10-03 at 16:12 +0200, Felix Natter wrote:

> I am starting to package libiconloader-java but unfortunately, there
> are no releases or tags in the respository:
>   https://github.com/bulenkov/iconloader

You might want to use something like what I did with purple-discord.
It relies on some aspects of github's commits page HTML but it works.

# Upstream does not have git tags, this is a workaround
# This still has bugs when there are multiple commits per day
# because uscan doesn't have a way to sort upstream versions by time
version=4
opts="pagemangle=s{(?s)(<relative-time datetime=(.)(\d{4})-(\d{2})-(\d{2}).*?<a href=[^ ]* class=.sha btn btn-outline BtnGroup-item.>\s*(\S+)\s*</a>)}{<a href=$2/uscan/0.9.$3.$4.$5.git.$6$2>0.9.$3.$4.$5.git.$6</a>$1}g,\
downloadurlmangle=s{.*\.git\.([a-f0-9]+)}{https://github.com/EionRobb/purple-discord/archive/$1.tar.gz},\
filenamemangle=s{^/uscan/(.*)}{purple-discord-$1.tar.gz}" \
https://github.com/EionRobb/purple-discord/commits \
/uscan/(0\.9\.\d{4}\.\d{2}\.\d{2}\.git\.[a-f0-9]+)

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: