diff options
Diffstat (limited to 'community/editorconfig')
-rw-r--r-- | community/editorconfig/APKBUILD | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/community/editorconfig/APKBUILD b/community/editorconfig/APKBUILD index 40ce4aa39c..fab7f8a0f8 100644 --- a/community/editorconfig/APKBUILD +++ b/community/editorconfig/APKBUILD @@ -1,33 +1,22 @@ # Contributor: # Maintainer: Paul Morgan <jumanjiman@gmail.com> pkgname=editorconfig +_pkgname=$pkgname-core-c pkgver=0.12.1 pkgrel=1 pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)" url="https://github.com/editorconfig/editorconfig-core-c" arch="all" -license="BSD" # "Simplified" http://opensource.org/licenses/BSD-2-Clause +license="BSD" # "Simplified" http://opensource.org/licenses/BSD-2-Clause depends="" -depends_dev="" -makedepends="$depends_dev cmake doxygen pcre-dev" -install="" -options="" +makedepends="cmake doxygen pcre-dev" subpackages="$pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/editorconfig-core-c/archive/v$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-core-c-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" + cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -38,11 +27,12 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 - # Remove symlink to editorconfig-$pkgver + + # Remove symlink to editorconfig-$pkgver. rm -f "$pkgdir/usr/bin/$pkgname" || return 1 - # Rename editorconfig-$pkgver as editorconfig mv -f "$pkgdir/usr/bin/$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" || return 1 } |