diff options
author | Sven Greb | 2022-04-04 09:33:34 +0200 |
---|---|---|
committer | Sven Greb | 2022-04-04 09:42:29 +0200 |
commit | 5d5b3e7d1641c457f45b1023d5a3dba95e32172b (patch) | |
tree | bf55cbc00f5853f5599677448471232171351214 | |
parent | c7c2d9079720b77290b2f72c70f7905c64e983ac (diff) | |
download | aur-5d5b3e7d1641c457f45b1023d5a3dba95e32172b.tar.gz |
Use the advanced syntax for the `source` field for the package file name
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 5 insertions, 6 deletions
@@ -9,7 +9,7 @@ pkgbase = mage license = Apache makedepends = git makedepends = go-pie - source = git+https://github.com/magefile/mage.git + source = mage::git+https://github.com/magefile/mage#tag=v1.13.0 sha256sums = SKIP pkgname = mage @@ -11,16 +11,15 @@ arch=("x86_64" "arm" "aarch64") url="https://magefile.org" license=("Apache") makedepends=("git" "go-pie") -source=("git+https://github.com/magefile/${pkgname}.git") +# We're building from source to get metadata information for the binary, but using a stable version tag instead of +# the latest commit since this is not a `-git` package. +# See https://man.archlinux.org/man/PKGBUILD.5#USING_VCS_SOURCES for more information. +source=("$pkgname::git+https://github.com/magefile/mage#tag=v$pkgver") sha256sums=("SKIP") build() { cd "$pkgname" - # We're building from source to get metadata information for the binary, but using a stable version tag instead of - # the latest commit since this is not a `-git` package. - git checkout "v$pkgver" - # mage is build with mage itself, therefore we simluate the execution of the provided `bootstrap.go` installation # file that is recommended by the author. # The file builds mage when mage itself is not installed on the target system yet and included metadata information |