Skip to content

Commit

Permalink
Add arch's PKGBUILD files (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanesty authored May 2, 2024
1 parent 232fa99 commit 3c01e09
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,12 @@
"multi_line_comments": [["/*", "*/"]],
"extensions": ["oz"]
},
"PacmanMakepkg": {
"name": "Pacman's makepkg",
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"filenames": ["pkgbuild"]
},
"Pan": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
Expand Down
24 changes: 24 additions & 0 deletions tests/data/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 24 lines 19 code 3 comments 2 blanks
# Maintainer: Andy 'Blocktronics' Herbert <blocktronics.org>
# Aur Maintainer: Wanesty <github.com/Wanesty/aurpkg>

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"
}

0 comments on commit 3c01e09

Please sign in to comment.