summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ea1a3eaf46c0dbc7292b77dc4192760bffecb2b (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
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Contributor: Oleksandr Natalenko <oleksandr@natalenko.name>

pkgname=uksmd-git
_repouser=post-factum
_reponame=uksmd
pkgver=0.0.0.r15.42f4ff8
pkgrel=3
pkgdesc="Userspace KSM helper daemon"
url="https://gitlab.com/post-factum/uksmd"
license=(GPL3)
arch=(x86_64)
depends=(procps-ng)
source=(${_reponame}::git+https://gitlab.com/post-factum/uksmd.git)
sha256sums=('SKIP')
conflicts=("${_reponame}")
provides=("${_reponame}")

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

build() {
	cd "${_reponame}"

	make
}

package() {
	cd "${_reponame}"

	make DESTDIR="${pkgdir}" PREFIX="/usr" install

	install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 "distro/${_reponame}.service" "${pkgdir}/usr/lib/systemd/system/${_reponame}.service"
}