blob: b5e8cca7367b97a77dad9ee9e43ff24dc5114104 (
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.7
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=('852949ce6d4599e7c45f6cb65b1f92ef250ddf3bcf639eabd5381aee3db99cda')
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"
}
|