blob: 43887adb8fbb731105777e22ab77658c87539c68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: fossdd <fossdd@tutanota.com>
pkgname=boa-git
_pkgname=boa
pkgver=0.19.r64.g94d08fe
pkgrel=1
pkgdesc="Boa is an embeddable and experimental Javascript engine written in Rust. Currently, it has support for some of the language."
arch=('i686' 'x86_64')
url="https://github.com/boa-dev/boa"
license=(MIT)
depends=('gcc-libs' 'glibc')
makedepends=('rust' 'git')
options=(!lto)
source=('git+https://github.com/boa-dev/boa.git')
sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${_pkgname}
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd ${_pkgname}
cargo build --frozen --release --all-features --bin boa
}
package() {
cd ${_pkgname}
install -Dm755 target/release/${_pkgname} -t "${pkgdir}"/usr/bin/
install -Dm644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
}
|