# $Id: PKGBUILD 98115 2013-10-06 07:34:10Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>

pkgname=ufw-extras
pkgver=0.3.0.g2d8cf5b
pkgrel=1
pkgdesc='Extra configuration files for UFW'
arch=('any')
url='https://github.com/xyproto/ufw-extras'
makedepends=('git')
depends=('ufw')
license=('GPL2')
source=("$pkgname::git://github.com/xyproto/$pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"

  # use the latest tag
  ver=`git describe --long` echo "${ver//-/.}"
}

package() {
  cd "$pkgname"

  msg 'Packaging configuration files...'
  for f in ufw-*; do
    msg2 "$f"
    install -Dm644 $f "$pkgdir/etc/ufw/applications.d/$f"
  done
}

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