summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f248272740fb9e9e71327d38d508c306f5fbd51 (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 <alt+archlinux.org@genki.is>

pkgname=dlm-git
pkgver=1
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 -D -m 0644 init/dlm.service "$pkgdir"/usr/lib/systemd/system/dlm.service
    install -D -m 0644 init/dlm.sysconfig "$pkgdir"/etc/sysconfig/dlm
}