public
Created

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# Maintainer: Philipp Millar <poxar[at]gmx[dot]net>
pkgname=rawk-git
pkgver=8d22a44
pkgrel=1
epoch=1
pkgdesc="A static site generator written in bourne shell."
url="http://rawk.brokenlcd.net"
arch=('any')
license=('ISC')
makedepends=('git')
provides=('rawk')
conflicts=('rawk')
optdepends=('smu: for markdown parsing'
'markdown: for markdown parsing')
 
source=('git://github.com/kisom/rawk.git')
md5sums=('SKIP')
 
pkgver() {
cd "$srcdir/rawk"
git describe --always | sed 's|-|.|g'
}
 
prepare() {
cd ${srcdir}/rawk
 
PREFIX="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" ./config.sh
 
sed -i -e 's|/usr/local|/usr|' rawk.1
sed -i -e 's|/usr/local|/usr|' rawkrc.5
sed -i -e 's|#!/bin/sh|#!/usr/bin/env sh|' rawk
}
 
package() {
cd ${srcdir}/rawk
 
mkdir -p ${pkgdir}/usr/bin
make install
 
# MANDIR is not honored by config.sh so move it in place manually
mv ${pkgdir}/usr/man ${pkgdir}/usr/share/man
 
mkdir -p ${pkgdir}/usr/share/licenses/rawk
cp license.txt ${pkgdir}/usr/share/licenses/rawk/license.txt
}
 
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.