updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / cush / PKGBUILD
blob262909865dfb01d9731a2c767a71cb100a3e554b
1 # Contributor: Chris Down <cdown.uk@gmail.com>
2 # Maintainer: Chris Down <cdown.uk@gmail.com>
4 pkgname=cush
5 pkgver=1.08
6 pkgrel=1
7 pkgdesc="Command line URL shortener."
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=('46f04d6df0f36472282f93f8dd6ad06a')
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"