File: PKGBUILD

package info (click to toggle)
chkservice 0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 164 kB
  • sloc: cpp: 1,472; ansic: 25; makefile: 4
file content (34 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
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.3
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
}