summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e77df6c407e74d55922efb3beb84076ace2e92b4 (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
# Maintainer: Quentin Bazin <quent42340 at gmail dot com>

_pkgname=eifl
pkgname="${_pkgname}-git"
pkgver=0.0.1
pkgrel=1
pkgdesc="Epitech Intra for Linux"
arch=("i686" "x86_64")
url="https://github.com/Quent42340/EIFL"
depends=("qt5-base" "qtkeychain" "curl")
makedepends=("cmake" "cpr-git")
provides=("eifl")
conflicts=("eifl-dev-git")
source=("${_pkgname}::git+${url}.git")
md5sums=("SKIP")

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

build() {
	cd "${_pkgname}"
	cmake .
	cmake --build .
}

package() {
	cmake --build "${_pkgname}" --target install -- DESTDIR="${pkgdir}"
}