diff options
author | João Valverde <j@v6e.pt> | 2023-01-19 23:36:43 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-01-29 22:07:43 +0000 |
commit | 80a35f632e2cb26a36452afa2be10bb4435a0214 (patch) | |
tree | fb6ee9e467ea3131ab50047ddbdac1f01dd51651 /packaging | |
parent | 1de8882cc3e370da9938e5f61994848f94f363e1 (diff) |
GitHub: Build MSYS2 commit SHA
The PKGBUILD always builds the tip of the master branch. Try to
allow selecting a commit using $PKG_COMMIT.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/msys2/mingw-w64-wireshark-git/PKGBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD b/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD index 48fa6fb782..4432134399 100644 --- a/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD +++ b/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD @@ -45,13 +45,14 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" 'git') provides=("${MINGW_PACKAGE_PREFIX}-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}") -source=("${_realname}"::"git+https://gitlab.com/wireshark/wireshark.git") +_commit=${PKG_COMMIT:-HEAD} +source=("${_realname}"::"git+https://gitlab.com/wireshark/wireshark.git#commit=${_commit}") sha256sums=('SKIP') pkgver() { cd "${_realname}" - git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g' + git describe --long "${_commit}" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g' } build() { |