summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6288c03a98ca08e01aec693dde83a6010233b84 (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
# Maintainer: MichaƂ Szmidt  <michal.sz@disroot.org>
pkgname=hctl
pkgver=0.2.6
pkgrel=1
pkgdesc="CLI Tool to transform, merge, remove duplicates, validate hostlists for dns adblocker"
# hctl is known to build on many architectures, those below are just known to build on other build systems like Alpine Linux and SUSE OBS, feel free to add
arch=(x86_64 i686 i586 aarch64 riscv64 s390x ppc64le ppc64 armhf armv7 )
url="https://github.com/michalszmidt/hctl"
license=(BSD-3-Clause)
depends=(openssl)
makedepends=( openssl rust cargo-auditable base-devel )
source=("https://github.com/michalszmidt/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('852f8e8eb0133f21d2f2183ab31ecda07e907480dde805d1891dc8c0215185ef')

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

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

package() {
	cd "$pkgname-$pkgver"
	install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
}