diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f197fd71fd3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = unudhcpd + pkgdesc = Extremely basic DHCP server that only issues 1 IP address to any client + pkgver = 0.2.1 + pkgrel = 1 + url = https://gitlab.com/postmarketOS/unudhcpd + arch = any + license = GPL-3.0-or-later + makedepends = meson + source = https://gitlab.com/postmarketOS/unudhcpd/-/archive/0.2.1/unudhcpd-0.2.1.tar.gz + sha256sums = c404424a65e6341ef04300e7408a2edad1481ce8841f541e20e058800e7b5485 + +pkgname = unudhcpd diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e9907cffb5f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Raihan Ahamed <raihan1999ahamed@gmail.com> + +pkgname=unudhcpd +pkgver=0.2.1 +pkgrel=1 +pkgdesc="Extremely basic DHCP server that only issues 1 IP address to any client" +url="https://gitlab.com/postmarketOS/unudhcpd" +arch=('any') +license=('GPL-3.0-or-later') +makedepends=('meson') +source=("https://gitlab.com/postmarketOS/unudhcpd/-/archive/$pkgver/unudhcpd-$pkgver.tar.gz") +sha256sums=('c404424a65e6341ef04300e7408a2edad1481ce8841f541e20e058800e7b5485') + +build() { + cd $pkgname-$pkgver + arch-meson output + meson compile -C output +} + +check() { + cd $pkgname-$pkgver + meson test --no-rebuild --print-errorlogs -C output +} + +package() { + cd $pkgname-$pkgver + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} |