diff options
author | stefanwimmer128 | 2023-05-03 20:12:59 +0200 |
---|---|---|
committer | stefanwimmer128 | 2023-05-03 20:12:59 +0200 |
commit | de7f19747ddaac5956b8939669ca6a10303ae963 (patch) | |
tree | f8ce93eb47dc9ee73db3157828830d4c051291ab | |
parent | 79c7e86d66cc929e29fc0681d46a581ae864c7c1 (diff) | |
download | aur-de7f19747ddaac5956b8939669ca6a10303ae963.tar.gz |
Simplify PKGBUILD
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -7,7 +7,7 @@ pkgbase = getoptions-bin license = CC0-1.0 provides = getoptions conflicts = getoptions - source = getoptions-3.3.0.r2.tar.zst::https://git.stefanwimmer128.eu/stefanwimmer128/getoptions/-/package_files/66/download + source = https://git.stefanwimmer128.io/api/v4/projects/167/packages/generic/getoptions/3.3.0-2/getoptions-3.3.0-2-any.pkg.tar.zst sha256sums = 7300dd5093855d48613849ea1e4d38b96537278152caf7191be46b902f871ac4 pkgname = getoptions-bin @@ -2,19 +2,21 @@ _pkgname=getoptions pkgname=$_pkgname-bin -pkgver=3.3.0.r2 +_pkgver=3.3.0-2 +pkgver=${_pkgver//-/.r} pkgrel=1 pkgdesc='An elegant option/argument parser for shell scripts' -arch=(any) +_arch=any +arch=($_arch) license=(CC0-1.0) url='https://github.com/ko1nksm/getoptions' provides=($_pkgname) conflicts=($_pkgname) -source=("$_pkgname-$pkgver.tar.zst::https://git.stefanwimmer128.eu/stefanwimmer128/getoptions/-/package_files/66/download") +source=("https://git.stefanwimmer128.io/api/v4/projects/167/packages/generic/$_pkgname/$_pkgver/$_pkgname-$_pkgver-$_arch.pkg.tar.zst") sha256sums=('7300dd5093855d48613849ea1e4d38b96537278152caf7191be46b902f871ac4') build() { - rm "$_pkgname-$pkgver.tar.zst" + rm "$_pkgname-$_pkgver-$_arch.pkg.tar.zst" rm .BUILDINFO .MTREE .PKGINFO } |