From 83cf62a85b49a5ab5d2e1a461aab204e407a1f73 Mon Sep 17 00:00:00 2001 From: wanesty <98633588+wanesty@users.noreply.github.com> Date: Thu, 2 May 2024 17:55:20 +0200 Subject: [PATCH] Add arch's PKGBUILD files (#972) --- languages.json | 6 ++++++ tests/data/PKGBUILD | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/data/PKGBUILD diff --git a/languages.json b/languages.json index 2e8e1bd3e..afd638266 100644 --- a/languages.json +++ b/languages.json @@ -1076,6 +1076,12 @@ "multi_line_comments": [["/*", "*/"]], "extensions": ["oz"] }, + "PacmanMakepkg": { + "name": "Pacman's makepkg", + "line_comment": ["#"], + "quotes": [["\\\"", "\\\""], ["'", "'"]], + "filenames": ["pkgbuild"] + }, "Pan": { "line_comment": ["#"], "quotes": [["\\\"", "\\\""], ["'", "'"]], diff --git a/tests/data/PKGBUILD b/tests/data/PKGBUILD new file mode 100644 index 000000000..83ef0c11c --- /dev/null +++ b/tests/data/PKGBUILD @@ -0,0 +1,24 @@ +# 24 lines 19 code 3 comments 2 blanks +# Maintainer: Andy 'Blocktronics' Herbert +# Aur Maintainer: Wanesty + +pkgname=moebius-bin +pkgver=1.0.29 +pkgrel=1 +epoch=1 +pkgdesc="Modern ANSI & ASCII Art Editor" +arch=('x86_64') +url="https://github.com/blocktronics/moebius" +license=('Apache') +depends=('gtk3' 'libnotify' 'libxss' 'libxtst' 'xdg-utils' 'libappindicator-gtk3') +makedepends=('libarchive') +conflicts=('moebius') +source=("https://github.com/blocktronics/moebius/releases/download/$pkgver/Moebius.rpm") +sha256sums=(69aaa1e42e287ed78c8e73971dae3df23ae4fa00e3416ea0fc262b7d147fefec) +noextract=("Moebius.rpm") + +package() { + bsdtar -C "${pkgdir}" -xvf "$srcdir/Moebius.rpm" + mkdir "$pkgdir/usr/bin" + ln -s "/opt/Moebius/moebius" "$pkgdir/usr/bin/moebius" +} \ No newline at end of file