blob: 67fa65501dcde63ce81576ed119172834fc1508a (
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
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=editorconfig-core-c-git
pkgver=0.12.9.r16.g3436fb9
pkgrel=1
pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)"
arch=('i686' 'x86_64')
url="https://github.com/editorconfig/editorconfig-core-c"
license=('BSD-2-Clause')
depends=('glibc' 'pcre2')
makedepends=('git' 'cmake')
provides=("editorconfig-core-c=$pkgver")
conflicts=('editorconfig-core-c')
source=('git+https://github.com/editorconfig/editorconfig-core-c.git')
sha256sums=('SKIP')
pkgver() {
cd "editorconfig-core-c"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "editorconfig-core-c"
cmake \
-B "_build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DINSTALL_HTML_DOC=ON \
./
cmake --build "_build"
}
package() {
cd "editorconfig-core-c"
DESTDIR="$pkgdir" cmake --install "_build"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/editorconfig-core-c"
}
|