#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer		: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Creator		: Dave Reisner <d@falconindy.com>
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=cower
#pkgver=18
#pkgrel=06
pkgver=0.1.0
pkgrel=01
pkgdesc='A simple AUR agent with a pretentious name'
arch=(x86_64)
groups=( jobbot )
url="https://framagit.org/obarun/cower"
depends=('curl' 'pacman' 'yajl')
makedepends=('perl')
source=("${pkgname}::git+${url}#tag=$pkgver")

build() {
  cd "$pkgname"
  make
}

package() {
  cd "$pkgname"
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

#---- license gpg-key sha256sums ----

license=('MIT')

validpgpkeys=('487EACC08557AD082088DABA1EB2638FF56C0C53')  # Dave Reisner

sha256sums=(SKIP)
