summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12020-06-23 15:16:20 +0800
committerChocobo12020-06-23 15:16:20 +0800
commit706fedbc02efdde312a8f0e5dea1a1dc91b7553b (patch)
tree5b62e3cfc42226609b4bc6050ba03a6f4d4b2e52 /PKGBUILD
parent65004843533199e5b3c8a013c5acb218f068f2ea (diff)
downloadaur-706fedbc02efdde312a8f0e5dea1a1dc91b7553b.tar.gz
upgpkg: editorconfig-core-c-git 0.12.3.r38.ge70d90d-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 15 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index eb7d4d53898..5b05cf41763 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,20 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=editorconfig-core-c-git
-pkgver=0.12.1.r16.g6f3c40d
-pkgrel=2
+pkgver=0.12.3.r38.ge70d90d
+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')
-depends=('glibc' 'pcre')
-makedepends=('git' 'cmake>=2.8.7')
+depends=('glibc' 'pcre2')
+makedepends=('git' 'cmake')
provides=('editorconfig-core-c')
conflicts=('editorconfig-core-c')
source=('git+https://github.com/editorconfig/editorconfig-core-c.git')
sha256sums=('SKIP')
-prepare() {
- cd "editorconfig-core-c"
-
- mkdir -p "_build"
-}
-
pkgver() {
cd "editorconfig-core-c"
@@ -28,19 +22,21 @@ pkgver() {
}
build() {
- cd "editorconfig-core-c/_build"
+ cd "editorconfig-core-c"
- cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_BUILD_TYPE=Release -DINSTALL_HTML_DOC=ON ../
+ mkdir -p "_build" && cd "_build"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ -DINSTALL_HTML_DOC=ON \
+ "../"
make
}
package() {
- cd "editorconfig-core-c/_build"
-
- make DESTDIR="$pkgdir" install
- install -Dm644 "../LICENSE" "$pkgdir/usr/share/licenses/editorconfig-core-c/LICENSE"
+ cd "editorconfig-core-c"
- # name clash with python-editorconfig
- # https://bugs.archlinux.org/task/53365
- rm "$pkgdir/usr/bin/editorconfig"
+ make -C "_build" DESTDIR="$pkgdir" install
+ install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/editorconfig-core-c"
}