# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Arvedui <arvedui@posteo.de>
# Contributer: Philipp Moeller <bootsarehax@gmail.com>

pkgname=ddate
pkgver=0.2.2
pkgrel=2
pkgdesc="Perpetual date converter from gregorian to poee calendar"
arch=('x86_64' 'i686' 'pentium4')
url="https://github.com/bo0ts/ddate"
license=('GPL')
_pinned_dependencies=(
  'glibc>=2.31'
)
depends=("${_pinned_dependencies[@]}")
makedepends=('cmake')
source=($pkgname-$pkgver.tar.gz::https://github.com/bo0ts/ddate/archive/v${pkgver}.tar.gz)

sha512sums=('5d148e030bee392eb93c5ae519061af0736f2f75eaae916e3efaf927d9f4de8cc72afc4a5121b6fbc0264b73e9f580330a38b97bb78837d447d0b4c1fc29ec06')

build() {
  cd $srcdir/ddate-${pkgver}/
  cmake -DCMAKE_INSTALL_PREFIX=/usr
  make PREFIX="/usr"
}

package() {
  cd $srcdir/ddate-${pkgver}/
  make DESTDIR="$pkgdir" install
}