mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 20:52:55 +01:00
init
This commit is contained in:
commit
74dca2be11
3 changed files with 55 additions and 0 deletions
15
.SRCINFO
Normal file
15
.SRCINFO
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pkgbase = arduino-flasher-cli
|
||||
pkgdesc = Arduino UNO Q image flasher
|
||||
pkgver = 0.4.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/arduino/arduino-flasher-cli
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = GPL-3
|
||||
makedepends = go
|
||||
makedepends = go-task
|
||||
depends = qdl-git
|
||||
source = arduino-flasher-cli-0.4.0.tar.gz::https://github.com/arduino/arduino-flasher-cli/archive/v0.4.0.tar.gz
|
||||
sha256sums = 00bde6c4c461de91e7cd0592e4eaca1fbfadd64e3fcd10f7f448ef794efdeb3a
|
||||
|
||||
pkgname = arduino-flasher-cli
|
||||
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
*.tar.zst
|
||||
*.tar.gz
|
||||
*.log
|
||||
pkg
|
||||
src
|
||||
35
PKGBUILD
Normal file
35
PKGBUILD
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: Super Tecno Gym <banana@grrlz.net>
|
||||
|
||||
pkgname=arduino-flasher-cli
|
||||
pkgver=0.4.0
|
||||
pkgrel=1
|
||||
pkgdesc="Arduino UNO Q image flasher"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/arduino/arduino-flasher-cli"
|
||||
license=('GPL-3')
|
||||
makedepends=(
|
||||
'go'
|
||||
'go-task'
|
||||
)
|
||||
depends=('qdl-git')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('00bde6c4c461de91e7cd0592e4eaca1fbfadd64e3fcd10f7f448ef794efdeb3a')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
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-task init
|
||||
go-task build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
install -Dm755 build/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue