upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / selene / trunk / PKGBUILD
blob46b878b4535725202260bade22e6d11728151519
1 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
4 pkgname=selene
5 pkgver=0.25.0
6 pkgrel=1
7 pkgdesc='Blazing-fast modern Lua linter written in Rust'
8 arch=('x86_64')
9 url=https://github.com/Kampfkarren/selene
10 license=('MPL2')
11 depends=('gcc-libs' 'openssl')
12 makedepends=('rust')
13 conflicts=("$pkgname-linter")
14 replaces=("$pkgname-linter")
15 options=('!lto')
16 source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
17 b2sums=('2760600beeb00cdea417a21d4e0d9017c1c91e073e3569db7264e87107acf3ac2e657b501e65b596ad5c703fd3cb4283cbba03eb0c5198d0cfd9af7a0cebca81')
19 prepare() {
20   cd $pkgname-$pkgver
21   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
24 build() {
25   cd $pkgname-$pkgver
26   cargo build --release --locked --offline
29 check() {
30   cd $pkgname-$pkgver
31   cargo test --locked --offline
34 package() {
35   cd $pkgname-$pkgver
36   install -Dt "$pkgdir"/usr/bin target/release/$pkgname
39 # vim:set ts=2 sw=2 et: