aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04bc329a1007b51ff05a97ac14f5641fd4b433de (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
# Maintainer: Nev Delap <nevdelap at gmail dot com>
pkgname="ned"
pkgver="1.3.3"
pkgrel=1
pkgdesc="Like grep but with a powerful replace, unlike sed, it's not only line oriented."
arch=("x86_64")
url="https://github.com/nevdelap/ned"
license=("GPL3")
makedepends=("rust")
source=("$pkgname-$pkgver.tar.gz::https://github.com/nevdelap/ned/archive/release.$pkgver.tar.gz")
md5sums=('be586745a5d29295b8722bc87c1a0226')

build() {
	cd "ned-release.$pkgver"
	cargo build --release --locked
}

check() {
	cd "ned-release.$pkgver"
	cargo test --release --locked
}

package() {
	install -Dm755 "ned-release.$pkgver/target/release/ned" "$pkgdir/usr/bin/ned"
	gzip < "ned-release.$pkgver/man/ned.1" > "ned-release.$pkgver/man/ned.1.gz"
	install -Dm 0644 "ned-release.$pkgver/man/ned.1.gz" "$pkgdir/usr/share/man/man1/ned.1.gz"
}