summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8d3a625cfebb4f198354525c419daf46b90d07e (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
29
30
31
pkgname=local-dns
pkgver=0.7
pkgrel=2
pkgdesc="DNS resolution wrapper allowing fake DNS addresses mapped to devices by MAC address."
arch=(x86_64)
url="https://github.com/Student-Team-Projects/Local-DNS.git"
license=('GPL')
depends=('glibc' 'libpcap' 'nlohmann-json' 'libcrafter-git') # libcrafter is part of AUR
makedepends=('git' 'make' 'gcc>=10' 'autoconf' 'systemd')
source=("git+$url")
sha256sums=('SKIP')  # Replace 'SKIP' with actual checksums for security


prepare() {
    cd "$srcdir/Local-DNS"
}

build() {
    cd "$srcdir/Local-DNS"
    make main
}

package() {
    cd "$srcdir/Local-DNS"
    make DESTDIR="$pkgdir" install
}

install() {
    # Systemd hooks are managed via the .install file.
    :
}