blob: a8fe5a38233bf38fcc94ceee7f4b51f22b08eb67 (
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
|
pkgname="blokator"
pkgver=0.5.3
pkgrel=1
pkgdesc="Simple system-wide adblocker"
url="https://codeberg.org/Tomkoid/blokator"
arch=("x86_64")
makedepends=("cargo" "git" "pkg-config" "openssl")
optdepends=("android-tools: push hosts file to your Android device")
license=("GPL3")
source=("git+https://codeberg.org/Tomkoid/blokator#tag=$pkgver")
sha512sums=("SKIP")
build() {
cd "$srcdir/blokator"
# Prepare man page
cp man-pages/blokator man-pages/blokator.1
gzip man-pages/blokator.1
# Build
cargo build --release
}
package() {
install -Dm755 "${srcdir}/blokator/target/release/blokator" "${pkgdir}/usr/bin/blokator"
install -Dm644 "${srcdir}/blokator/man-pages/blokator.1.gz" "${pkgdir}/usr/share/man/man1/blokator.1.gz"
}
|