Received: from mail.cmpwn.com (mail.cmpwn.com [45.56.77.53]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id CAF38781AA1 for <~alpine/aports@lists.alpinelinux.org>; Thu, 8 Aug 2019 23:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1565307406; bh=1unG0X//UDociqotlTJ8ugKwR9hE7Zf8XLWpUTzabVY=; h=From:To:Cc:Subject:Date; b=s5AcPdJs9A7msdW6WjLUmv7J4eLXviOHRR72xwGg4xdrJY5GkWrWFSX8VeLQDLZ7Y HSonUu73QhJlXCZtlj7PnBeDk0UFeswIksXk94zRsh4jrOUE5qDjPOvmy4+qp9Ra8P cctq0fCX42h41ZT05WGRsdFnCG3NnGW14nN6IviQ= From: Drew DeVault To: ~alpine/aports@lists.alpinelinux.org Cc: Drew DeVault Subject: [PATCH v2] main/meson: add meson-vim Date: Fri, 9 Aug 2019 08:36:37 +0900 Message-Id: <20190808233637.5274-1-sir@cmpwn.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- main/meson/APKBUILD | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/main/meson/APKBUILD b/main/meson/APKBUILD index 58289d6482..7bf14172eb 100644 --- a/main/meson/APKBUILD +++ b/main/meson/APKBUILD @@ -2,13 +2,13 @@ # Maintainer: Francesco Colista pkgname=meson pkgver=0.51.1 -pkgrel=0 +pkgrel=1 pkgdesc="Fast and user friendly build system" url="https://mesonbuild.com" arch="noarch" license="Apache-2.0" depends="ninja py3-setuptools python3" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-vim::noarch" source="https://github.com/mesonbuild/meson/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" build() { @@ -26,4 +26,17 @@ package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } +vim() { + pkgdesc="$pkgdesc (vim support)" + install_if="vim $pkgname=$pkgver-r$pkgrel" + cd "$builddir" + for kind in ftdetect ftplugin indent syntax + do + mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/$kind + install -Dm644 \ + "$builddir"/data/syntax-highlighting/vim/$kind/meson.vim \ + "$subpkgdir"/usr/share/vim/vimfiles/$kind/meson.vim + done +} + sha512sums="b0b220de2a20c355cbd2f63aff195374ad8b2dae64f0dc4efb7abf84d7a9e70b6d4239d3d94b2b8ba2de5dd6e871589848b057c842c8f256016c666e9aa882f1 meson-0.51.1.tar.gz" -- 2.22.0