diff options
author | spikecodes | 2020-10-23 20:18:46 -0700 |
---|---|---|
committer | spikecodes | 2020-10-23 20:18:46 -0700 |
commit | 592a30dd8302017ed06cfaee0610123607d48c62 (patch) | |
tree | 573edd8dc435cadaba5c263d60587cbb9145ccc9 /PKGBUILD | |
download | aur-calyxos-flasher-git.tar.gz |
Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d921c03b42f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: spikecodes <19519553+spikecodes@users.noreply.github.com> +pkgname=calyxos-flasher-git +_pkgname=${pkgname%-git} +pkgver=r108.ff9a4de +pkgrel=1 +pkgdesc="A simple way to install CalyxOS on your device" +arch=('any') +url="https://github.com/AOSPAlliance/device-flasher" +license=("Apache") +makedepends=("go") +provides=(${_pkgname}) +conflicts=(${_pkgname}) +source=("${_pkgname}::git+${url}") +sha256sums=("SKIP") + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${_pkgname}" + export GOOS="linux" + export GOARCH="amd64" + go build -o calyxos-flasher +} + +package() { + cd "${_pkgname}" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE" + install -Dm755 calyxos-flasher "$pkgdir/usr/bin/${_pkgname}" +} |