diff options
author | Hanabishi | 2021-11-12 14:37:38 +0500 |
---|---|---|
committer | Hanabishi | 2021-11-12 14:37:38 +0500 |
commit | 9f76e7a16408a63aa78baad5d26d63ca88e1350e (patch) | |
tree | 559eeb11a9d4c72356b2b9c91d673d1a87b22eec /PKGBUILD | |
parent | a5d42aa7460bb3da6452500a2d89cb7a5cf97736 (diff) | |
download | aur-9f76e7a16408a63aa78baad5d26d63ca88e1350e.tar.gz |
Use variable for head
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,6 +1,7 @@ _repo="Paragon-Software-Group/linux-ntfs3" _ver="5.15" _base="8bb7eca972ad531c9b149c0a51ab43a417385813" +_head="master" pkgname=ntfs3-dkms-git pkgver=5.15.r0.g8bb7eca @@ -33,8 +34,8 @@ sha512sums=( pkgver() { local api="https://api.github.com/repos/${_repo}" - local rev=$(curl "${api}/compare/${_base}...master" | perl -ne'/"total_commits":\s?(\d+),?/ && print $1') - local sha=$(curl -H "Accept: text/vnd.github.VERSION.sha" "${api}/commits/master") + local rev=$(curl "${api}/compare/${_base}...${_head}" | perl -ne'/"total_commits":\s?(\d+),?/ && print $1') + local sha=$(curl -H "Accept: text/vnd.github.VERSION.sha" "${api}/commits/${_head}") echo "${_ver}.r${rev}.g${sha:0:7}" } @@ -47,8 +48,8 @@ prepare() { cd "repo" - git sparse-checkout set "fs/ntfs3" - git checkout master + git sparse-checkout set "/fs/ntfs3" + git checkout "${_head}" ln -rs "fs/ntfs3" "${srcdir}/ntfs3" } |