# Maintainer (AUR): Tom Hacohen <tom@stosb.com>
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

# parabola changes and rationale:
#  - added license to package

pkgname=cronic
pkgver=3
pkgrel=1
pkgdesc="Cronic is a shell script to help control the most annoying feature of cron: unwanted emailed output."
url="http://habilis.net/cronic/"
depends=('bash')
license=('CC0')
arch=('any')
binaryname="cronic-v${pkgver}"
source=(http://habilis.net/cronic/${binaryname}
	      CC0-1.0.html::http://creativecommons.org/publicdomain/zero/1.0/legalcode)
sha256sums=('25d9772e142ebdcaa72433431e26d855ae82b085709faf0d2169b3bda867aeac'
            'bce76ba5c91a3911a8227a329ba2d3f443a779cfaca932d2b76331c34fcb0230')

package() {
    cd "$srcdir"

    install -m 0755 -d $pkgdir/usr/bin/
    install -m 0755 "${binaryname}" $pkgdir/usr/bin/cronic
    install -m 0755 -d $pkgdir/usr/share/licenses/cronic
    install -m 0644 CC0-1.0.html $pkgdir/usr/share/licenses/cronic
}


