summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9adc7905fcd76179f04f624242637ea9c0e09d73 (plain)
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
# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>

pkgname=combust-git
pkgver=0.71.674219b
pkgrel=2
pkgdesc='nftables firewall script with profiles'
arch=('any')
url='https://github.com/gavinhungry/combust'
license=('MIT')
depends=('nftables')
backup=('etc/combust.conf')
source=("${pkgname}::git+https://github.com/gavinhungry/combust.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  echo 0.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd "${srcdir}/${pkgname}"

  install -Dm644 combust.conf "${pkgdir}"/etc/combust.conf
  install -Dm755 combust.sh "${pkgdir}"/usr/bin/combust
  install -Dm644 combust.service "${pkgdir}"/usr/lib/systemd/system/combust.service
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}