# $Id: PKGBUILD 101512 2013-11-26 20:07:38Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>

pkgname=setconf
pkgver=0.6.2
pkgrel=2
pkgdesc='Utility to easily change settings in configuration files'
arch=('any')
url='http://setconf.roboticoverlords.org/'
license=('GPL2')
depends=('python2')
source=("http://setconf.roboticoverlords.org/$pkgname-$pkgver.tar.xz")
sha256sums=('8f91dc5cc24cc9d4f7c34fbc657259384f99d7222b6df9375bac5436d601d0c2')

prepare() {
  sed -i 's:usr/bin/python:usr/bin/python2:' "$pkgname-$pkgver/$pkgname.py"
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
}

# vim:set ts=2 sw=2 et:
