summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cbac18815a84db128bfc53d603aed55ea0d0c91 (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
32
33
34
pkgname=chkservice
pkgver=0.1
pkgrel=1
pkgdesc="Ncurses based gui for systemd"
url="https://github.com/linuxenko/chkservice"
arch=('any')
license=('gpl')
depends=('ncurses'
         'libsystemd'
         )
optdepends=()
makedepends=('pkg-config'
             'cmake')

_gitsrc="https://github.com/linuxenko/chkservice.git"

build() {
  cd "${srcdir}"
  git clone ${_gitsrc}

  # start the build
  mkdir "${srcdir}/${pkgname}/build" -p
  cd "${srcdir}/${pkgname}/build"
  msg "Starting cmake..."
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../
  msg "Starting make..."
  make
}

package() {
  cd "${srcdir}/${pkgname}/build"
  mkdir -p ${pkgdir}/usr/bin
  install -Dm755 ${srcdir}/${pkgname}/build/src/chkservice ${pkgdir}/usr/bin
}