mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
25 lines
785 B
Bash
25 lines
785 B
Bash
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
_pkgname='wrangler'
|
|
pkgname='cloudflare-wrangler'
|
|
pkgver="1.19.13"
|
|
pkgrel=1
|
|
pkgdesc='Command-line tool for working with Cloudflare Workers'
|
|
arch=('x86_64')
|
|
url="https://github.com/cloudflare/wrangler"
|
|
license=('Apache' 'MIT')
|
|
makedepends=('cargo')
|
|
source=("${url}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('7715e3e35eb4a5983c99f697f273bb136e7b122a9dee453e9f8fcf77a51c42db')
|
|
|
|
build() {
|
|
cd "${_pkgname}-${pkgver}"
|
|
cargo build --release --locked
|
|
}
|
|
|
|
package() {
|
|
cd "${_pkgname}-${pkgver}"
|
|
install -Dm 755 target/release/${_pkgname} "$pkgdir/usr/bin/${_pkgname}"
|
|
install -Dm 644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE"
|
|
install -Dm 644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
|
|
}
|