diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-02 17:54:51 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-02 17:55:18 +0200 |
commit | 76bd5726468be9477f060262cde5f4f7a8b00cb4 (patch) | |
tree | bf0762c7c0426f070616dd54c871b9c367fe9014 /community/editorconfig/APKBUILD | |
parent | 731ddc3ac28995a3a45422d7807e1c6f323f9263 (diff) | |
download | aports-76bd5726468be9477f060262cde5f4f7a8b00cb4.tar.bz2 aports-76bd5726468be9477f060262cde5f4f7a8b00cb4.tar.xz |
community/editorconfig: improve abuild
Diffstat (limited to 'community/editorconfig/APKBUILD')
-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 } |