summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87e20d375b055d274b6c6202d81175ab47d6c7d4 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Vincent Gatine <nurelin@nurelin.eu>
pkgname=eovim-git
pkgver=r311.08ccc91
pkgrel=1
epoch=
pkgdesc="EFL powered Neovim GUI"
arch=('x86_64')
url="https://github.com/jeanguyomarch/eovim"
license=('MIT')
groups=()
depends=('efl' 'neovim' 'msgpack-c')
makedepends=('cmake' 'git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("eovim-git::git+https://github.com/jeanguyomarch/eovim.git")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

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

prepare() {
	cd "$pkgname"
	mkdir -p build
	cd build
	cmake \
	-DCMAKE_INSTALL_PREFIX="$pkgdir/usr/" \
	-DCMAKE_BUILD_TYPE=Release \
	-DLIB_INSTALL_DIR="lib/" \
	..
}

build() {
	cd "$pkgname"
	cmake --build build
}

package() {
	cd "$pkgname"
	cmake --build build --target install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}