# Maintainer: micbou <contact@micbou.com>

pkgname=pwgen
pkgver=2.08
pkgrel=2
pkgdesc='Password generator for creating easily memorable passwords'
arch=('x86_64' 'i686')
url='https://sourceforge.net/projects/pwgen/'
msys2_references=(
  "cpe: cpe:/a:pwgen_project:pwgen"
)
license=('GPL')
makedepends=('autotools' 'gcc')
source=("https://downloads.sourceforge.net/sourceforge/pwgen/$pkgname-$pkgver.tar.gz")
sha256sums=('dab03dd30ad5a58e578c5581241a6e87e184a18eb2c3b2e0fffa8a9cf105c97b')

prepare() {
  cd "$pkgname-$pkgver"
  autoconf
}

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
}
