blob: e791681fba742f013fdf14d59d8ccadcf105e711 (
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
|
# Maintainer: Skiftsu <skiftsu@gmail.com>
pkgname=quick-aliases
pkgver=0.1
pkgrel=1
pkgdesc="Quick Aliases is a utility allows to save complex or lengthy commands under a name"
arch=('x86_64')
url="https://github.com/Skiftsu/quick-aliases"
license=('MIT OR Apache-2.0')
makedepends=(cargo
git)
source=("git+${url}.git")
sha256sums=("SKIP")
prepare() {
cd ${pkgname}
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd ${pkgname}
cargo build --release
}
package() {
cd ${pkgname}
install -D -m755 "target/release/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
}
|