Skip to content

Commit

Permalink
Fix PKGBUILD for Archlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
alersrt committed May 4, 2023
1 parent ae746f5 commit 320fb46
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build/packages/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
pkgname=blurhash-cli
pkgver=v1.0.0
pkgver=v1.0.1
pkgrel=1
pkgdesc='BlurHash CLI tool'
arch=('x86_64')
url="https://github.com/alersrt/go-blurhash-cli/archive/refs/tags"
license=('MIT')
makedepends=('go')
source=("$url/$pkgname-$pkgver.tar.gz")
# sha256sums=('...')
sha256sums=('SKIP')

prepare(){
_dirname=$(tar -tf "${source[0]##*/}" | head -n 1 | cut -d/ -f1)
mv $_dirname $pkgname-$pkgver

cd "$pkgname-$pkgver"
mkdir -p build/
}
Expand All @@ -21,7 +24,7 @@ build() {
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o build/bin/$pkgname ./cmd/cli/main.go
go build -o build/bin/$pkgname ./cmd/...
}

check() {
Expand Down

0 comments on commit 320fb46

Please sign in to comment.