makedepends=(systemd)

description="Connect your computer to a network which uses DHCP to assign network addresses."
url="http://roy.marples.name/projects/dhcpcd"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=dhcpcd
version=10.3.0
release=3

source=(https://github.com/NetworkConfiguration/$name/releases/download/v$version/$name-$version.tar.xz
  dhcpcdat.service)

build() {
  cd $name-$version

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --bindir=/usr/bin \
              --sbindir=/usr/sbin \
              --libdir=/usr/lib \
              --libexecdir=/usr/lib/dhcpcd \
              --dbdir=/var/lib/dhcpcd

  make
  make DESTDIR=$PKG install

  # Service
  mkdir -p $PKG/usr/lib/systemd/system/
  install -v -m644 ../dhcpcdat.service $PKG/usr/lib/systemd/system/dhcpcd@.service
}
