# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=drbl
pkgver=2.30.5
pkgrel=3
pkgdesc="Diskless Remote Boot in Linux: manage the deployment of the GNU/Linux operating system across many clients"
arch=('any')
url="http://drbl.sourceforge.net"
license=('GPL')
depends=('perl' 'bc')
makedepends=('vim')
backup=('etc/drbl/drbl.conf')
options=('!emptydirs')
source=(https://free.nchc.org.tw/drbl-core/src/stable/$pkgname-$pkgver.tar.xz
        usrbin.patch)
md5sums=('5d649c68bae688db122d1e7ac25b111c'
         'f01eac478f1ae62f505de645de96c68a')
sha256sums=('a5856b6effef9df2488c2e84d47ceac3440fef4f8fd4071dae84fadc78417e30'
            'c1ae79ac2d2d07cfd4437b093986823e9e14f75dbefbf04dde407b648be17ec4')

prepare() {
  cd $pkgname-$pkgver

  patch -Np0 -i "$srcdir"/usrbin.patch
}

build() {
  cd $pkgname-$pkgver

  make  
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}
