summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e26446c36d39b9b64c88f203f22957410760fb40 (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
# Maintainer: Dmitry Lavnikevich <haff@midgard.by>

pkgname=diembox
pkgver=2.0.0
pkgrel=1
pkgdesc="DiEM toolbox"
arch=('i686' 'x86_64')
url="https://github.com/githaff/diembox"
license=('BSD')
depends=('glibc')
makedepends=('git' 'cmake' 'extopts')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("git+https://github.com/githaff/diembox.git#tag=v${pkgver}")
md5sums=('SKIP')


build() {
	mkdir -p "${srcdir}/${pkgname}"
	cd "${srcdir}/${pkgname}"
	cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release "../${pkgname}"
	make
}

package() {
	cd "${srcdir}/${pkgname}"
	make DESTDIR="${pkgdir}" install
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}