summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2312439f0196c05a862c6600e4fcc00738f2f763 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
pkgname=ev-cmd
pkgver=1.0.0
pkgrel=1
epoch=
pkgdesc="Simple command runner I made for my Koolertron macropad"
arch=('x86_64')
url="https://github.com/danhab99/ev-cmd"
license=('MIT')
groups=()
depends=(rust)
makedepends=(rust)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
# source=("$pkgname-$pkgver.tar.gz")
source=("$url/tarball/$pkgver")
noextract=()
sha256sums=('b529a0f0bed58bd76f19407510ee662375f3305821507d4bd3f9fa8c13a266bc')
validpgpkeys=()

prepare() {
  _dirname=$(tar -tf "${source[0]##*/}" | head -n 1 | cut -d/ -f1)
  mv $_dirname $pkgname-$pkgver
}

build() {
	cd "$pkgname-$pkgver"
	cargo build --release
}

check() {
	cd "$pkgname-$pkgver"
	cargo check
}

package() {
	cd "$pkgname-$pkgver"
	install -m0755 target/release/ev-cmd /usr/bin/ev-cmd
}