summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0897b2e4ce9536ec4730c66b36cee8caa08fb927 (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
28
29
30
31
pkgname=caitsith-tools
_basever=0.2
_timestamp=20200229
pkgver=${_basever}_${_timestamp}
pkgrel=1
pkgdesc='CaitSith Linux userspace tools'
url='http://caitsith.osdn.jp/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('ncurses')
source=("http://jaist.dl.osdn.jp/caitsith/66538/caitsith-tools-${_basever}-${_timestamp}.tar.gz"
	"http://jaist.dl.osdn.jp/caitsith/66538/caitsith-tools-${_basever}-${_timestamp}.tar.gz.asc"
        "caitsith-auditd.service")
sha256sums=('539ac52d6e910a422f9e14a52486663a505b603b3f41573f4e6034548a82679c'
	'd694a83c4e326cfa25c02d8a4892898dad12a77d592325900d9c9dfe02fda6b2'
        'bcb87b74c937c17767412b8ba601fd5717923fb89c9caec57bcbcf11704d6d1e')
validpgpkeys=('43C83369623D7AD3A96C2FC7425F128D0C64F52A') # http://I-love.SAKURA.ne.jp/kumaneko-key

build() {
  cd "${srcdir}/${pkgname}"
  make USRSBINDIR=/usr/bin SBINDIR=/usr/bin
}

package() {
  cd "${srcdir}/${pkgname}"
  make USRSBINDIR=/usr/bin SBINDIR=/usr/bin INSTALLDIR="${pkgdir}" install

  _unitdir="$(pkg-config --variable=systemdsystemunitdir systemd)"
  install -Dm644 "${srcdir}/caitsith-auditd.service" \
    "${pkgdir}/${_unitdir}/caitsith-auditd.service"
}