blob: 1744c21e3c418f9ed6b82a8b63802a277cd3310a (
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
|
# Maintainer: Dominik 0drng <dominik.contact@proton.me>
pkgname=nywida
pkgver=0.1.2alpha
pkgrel=1
pkgdesc='Declarative package helper for pacman and existing aur helper'
url='https://github.com/0drng/nywida'
license=()
makedepends=('cargo')
depends=()
arch=('x86_64')
source=("$pkgname-$pkgver.tar.gz::https://github.com/0drng/nywida/archive/$pkgver.tar.gz")
sha256sums=('92e350ca0e6210d2e3c15ad899fc36d810ea360aebed471dba71f767fcb57adb')
OPTIONS=(!debug)
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$(rustc -vV | sed -n 's|host: ||p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
cd "$pkgname-$pkgver"
cargo build --frozen --release
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}
|