summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e7cd1c4180313dd03d83387ac4c5012f9cb38d6 (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
35
36
37
38
39
40
41
42
43
# Maintainer: L.G. Sarmiento <lgsarmientop-ala-unal.edu.co>
pkgname=daemonize-git
_pkgname=daemonize
pkgver=r81.18869a7
pkgrel=1
pkgdesc="Command-line utility for running any arbitrary program as a Unix daemon"
url="http://software.clapper.org/daemonize/"
arch=('x86_64')
makedepends=('git')
depends=('glibc')
license=('BSD')
provides=("daemonize")

source=($_pkgname::git+https://github.com/bmc/daemonize.git)
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/$_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {

  cd ${srcdir}/${_pkgname}
  ./configure --prefix=/usr
  make || return 1

}

package() {
#install package
  cd ${srcdir}/${_pkgname}
  make DESTDIR=$pkgdir install

  # move things to /usr/bin instead of /usr/sbin

  install -d ${pkgdir}/usr/bin
  mv ${pkgdir}/usr/sbin/* ${pkgdir}/usr/bin/
  rmdir ${pkgdir}/usr/sbin
  
  #install licence
  install -Dm644 ${srcdir}/${_pkgname}/LICENSE.md ${pkgdir}/usr/share/licenses/${_pkgname}/LICENCE
}