2023-03-11 04:40:47 +00:00
|
|
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
pkgname=unresolved
|
2024-05-02 15:04:46 +00:00
|
|
|
pkgver=0.1.2
|
2023-03-11 04:40:47 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Local DNS forwarder with split DNS and DoT/DoH support"
|
|
|
|
url="https://git.ptrc.gay/ptrcnull/unresolved"
|
2023-05-03 01:11:45 +00:00
|
|
|
arch="aarch64 x86_64"
|
2023-03-11 04:40:47 +00:00
|
|
|
license="BSD-2-Clause"
|
|
|
|
makedepends="cargo"
|
|
|
|
subpackages="$pkgname-openrc"
|
|
|
|
source="https://git.ptrc.gay/ptrcnull/unresolved/-/archive/$pkgver/unresolved-$pkgver.tar.gz
|
|
|
|
unresolved.initd
|
|
|
|
unresolved.confd
|
|
|
|
"
|
|
|
|
options="!check" # whoops no tests
|
|
|
|
|
2023-03-11 04:44:49 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2024-04-30 17:17:39 +00:00
|
|
|
|
2023-03-11 04:44:49 +00:00
|
|
|
cargo fetch --locked
|
|
|
|
}
|
|
|
|
|
2023-03-11 04:40:47 +00:00
|
|
|
build() {
|
|
|
|
cargo build --frozen --release
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm755 target/release/unresolved "$pkgdir"/usr/bin/unresolved
|
|
|
|
|
|
|
|
install -Dm755 "$srcdir"/unresolved.initd "$pkgdir"/etc/init.d/unresolved
|
|
|
|
install -Dm644 "$srcdir"/unresolved.confd "$pkgdir"/etc/conf.d/unresolved
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-05-02 15:04:46 +00:00
|
|
|
cfffc86a698811d6f5a9d8dd0bfc73f775f06720f110f81d8a937890345050a56adea38f031c18fb2ab606fbb23eefd57188e96c106e575e48c5b248afdbc82a unresolved-0.1.2.tar.gz
|
2023-03-11 04:40:47 +00:00
|
|
|
491a20ae5fdd5eafa3f2eb26b036880790d34ce4b3d1f0855509c5183f497fc4dc4a7f10adbc2fee1761abc3920746487a053a99c30b892198cb9edf7d43ad18 unresolved.initd
|
|
|
|
77e26379361cf94744a5bf1c925162ab3c6129702ed3bf0f26d55c7dc2d91167194ff73812200313c96c5e5d554143059949d7a640848a265c817f4e79a4327f unresolved.confd
|
|
|
|
"
|