diff options
author | IP2Location | 2024-01-26 07:36:13 +0800 |
---|---|---|
committer | IP2Location | 2024-01-26 07:36:13 +0800 |
commit | aa2d27c0b6efa7784bf47031a49eec6a34b9d862 (patch) | |
tree | 9b043fcadd245f1252a3e8f3fe7b1c258c5bd411 | |
parent | 1bfb703aabaf06beacef5eb4783e60d00c357ee2 (diff) | |
download | aur-ip2location-io-cli.tar.gz |
Fixed invalid directory.
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ # Maintainer: IP2Location <support@ip2location.com> -pkgname=ip2loaction-io-cli +pkgname=ip2location-io-cli _pkgname=${pkgname%} pkgver=1.1.0 pkgrel=1 @@ -13,7 +13,7 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/ip2location/ip2location-io- sha256sums=('86caf3202b8daea3a58aa3be3caa8514312116fba659d8e9e212e37b651b9f0d') prepare() { - cd "cli-${_pkgname}-$pkgver" + cd "${_pkgname}-$pkgver" export GOPATH="$srcdir/gopath" # download dependencies @@ -21,20 +21,20 @@ prepare() { } build() { - cd "cli-${_pkgname}-$pkgver" + cd "${_pkgname}-$pkgver" export GOPATH="$srcdir/gopath" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - go build -v -o build "./${_pkgname}" + go build -v -o build ./ip2locationio # Clean module cache for makepkg -C go clean -modcache } package() { - cd "cli-${_pkgname}-$pkgver" - install -Dm755 "build/${_pkgname}" -t "$pkgdir/usr/bin/" + cd "${_pkgname}-$pkgver" + install -Dm755 "build/ip2locationio" -t "$pkgdir/usr/bin/" }
\ No newline at end of file |