summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa4d075f036b5e1fe7a2b0c5d82afb1acc0dbed7 (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
# Maintainer: ALEXPRO100 <alealexpro100@ya.ru>

_pkgname=admc
pkgname=${_pkgname}-git
pkgver=r3560.5cc7bbb0
pkgrel=2
pkgdesc="Active Directory Management Center, replacement of RSAT"
arch=('x86_64')
url="https://github.com/altlinux/admc"
license=('GPL3')
depends=('samba' 'qt5-base'  'libldap' 'krb5' 'util-linux')
makedepends=('git' 'cmake' 'qt5-tools')
optdepends=('gpui: group policies support')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/altlinux/${_pkgname}.git")
md5sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../${_pkgname} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  make -j$(nproc)
}

package() {
  cd build
  DESTDIR="${pkgdir}" make install
}