updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / ncrast / PKGBUILD
blob65ca237f511c30dc27dbaddefc0e2aefeb7254e8
1 # Contributor: Chris Down <cdown.uk@gmail.com>
2 # Maintainer: Chris Down <cdown.uk@gmail.com>
4 pkgname=ncrast
5 pkgver=1.01
6 pkgrel=1
7 pkgdesc="A simple website blocker to help working concentration"
8 arch=('any')
9 url="https://github.com/cdown/${pkgname}"
10 license=('GPL3')
11 source=("http://fakkelbrigade.eu/chris/aur/${pkgname}/${pkgname}-${pkgver}.tar.gz")
12 md5sums=('64b35870b4cc9f455d2b4e9f3301bc34')
14 build() {
15         # Program
16         cd "${srcdir}/${pkgname}-${pkgver}"
17         install -d "${pkgdir}/usr/bin/"
18         install -m755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
20         # Sample config
21         install -d "${pkgdir}/usr/share/${pkgname}"
22         install -m755 "config" "${pkgdir}/usr/share/${pkgname}"
24         # Man page
25         pod2man --section=1 --center=' ' --name="${pkgname^^}" --release="${pkgname} ${pkgver}" "README.pod" "${pkgname}.1"
26         gzip -9 "${pkgname}.1"
27         install -Dm644 "${pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz"