#Maintainer: Erwin Waterlander <waterlan@xs4all.nl>

pkgname=wcd
pkgver=6.0.3
pkgrel=1
pkgdesc='Wherever Change Directory'
arch=('i686' 'x86_64')
url='https://waterlan.home.xs4all.nl/'
license=('GPL')
depends=('libintl' 'libunistring' 'ncurses')
groups=('sys-utils')
makedepends=('perl' 'gettext-devel' 'libunistring-devel' 'ncurses-devel')
source=("https://waterlan.home.xs4all.nl/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('0a7be2018577c7ab34436740a13c9d5deaf850fd4217666ab8a133b6bc4e8471')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}/src
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}/src
  make DESTDIR=${pkgdir} install
  make DESTDIR=${pkgdir} install-profile
  cd ${srcdir}/${pkgname}-${pkgver}/doc
  install -D -m644 copying.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
