# Maintainer: Jan "Singon" Slany <singond@seznam.cz>
pkgname="diclionary"
pkgver="0.1.0"
pkgrel=1
epoch=
pkgdesc="A command-line interface for selected online dictionaries."
arch=('x86_64')
url='https://github.com/singond/diclionary'
license=('Apache')
groups=()
depends=('gc' 'libevent')
makedepends=('crystal' 'shards')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-${pkgver//_/-}.tar.gz")
noextract=()
validpgpkeys=()
sha256sums=('e463b235c810cac1474db8abddf2fba63a63bc783a59259fd497e8e4e22d425c')

build() {
	cd "$pkgname-${pkgver//_/-}"
	make
}

check() {
	cd "$pkgname-${pkgver//_/-}"
	make -k check
}

package() {
	cd "$pkgname-${pkgver//_/-}"
	make DESTDIR="$pkgdir/" PREFIX=/usr install
}
