commit 60ad0b1d3d563a2a3e30fac4c4470526533cb74e Author: Marlon Ivo <email@marlonivo.com> Date: Sun, 27 Jul 2025 07:10:14 +0000 Dammit Diffstat:
A | PKGBUILD | | | 29 | +++++++++++++++++++++++++++++ |
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=hfc +pkgver=0.0.1 +pkgrel=1 +pkgdesc="hfc - hosts file client" +arch=('x86_64') +url="https://git.marlonivo.xyz/hfc" +license=('MIT') +depends=('curl' 'ncurses') +makedepends=('gcc' 'make') +source=("hfc::git+file://$PWD") +md5sums=('SKIP') + +build() { + cd "$srcdir/$pkgname" + make +} + +package() { + cd "$srcdir/$pkgname" + + # Binaryfile + install -Dm755 hfc "$pkgdir/usr/bin/hfc" + + # Manpage + install -Dm644 hfc.1 "$pkgdir/usr/share/man/man1/hfc.1" + + # License + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}