summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a164563e3a14f4b1f8804f5a1cc4204b01196673 (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
# Maintainer: Genki Sky <arch at genki dot is>

pkgname=dlm-git
pkgver=20170228.d2ef4558
pkgrel=1
pkgdesc='Userspace management for linux/fs/dlm'
arch=('i686' 'x86_64')
url='https://pagure.io/dlm'
license=('GPL' 'LGPL')
depends=('libutil-linux' 'ncurses' 'pacemaker' 'zlib')
makedepends=('git')
provides=('dlm')
conflicts=('dlm')
source=('git+https://pagure.io/dlm.git')
md5sums=('SKIP')

pkgver() {
    cd dlm
    git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
    cd dlm
    make
}

package() {
    cd dlm
    make PREFIX=/usr LIBNUM=lib BINDIR=/usr/bin DESTDIR="$pkgdir/" install
    install -Dm644 init/dlm.service "$pkgdir"/usr/lib/systemd/system/dlm.service
    install -Dm644 init/dlm.sysconfig "$pkgdir"/etc/sysconfig/dlm
}