Skip to content

Commit

Permalink
Merge pull request #99 from Markos-Th09/main
Browse files Browse the repository at this point in the history
Add aur publish
  • Loading branch information
Maiori44 authored Apr 22, 2023
2 parents 45ff332 + 355f111 commit a60a395
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [published]
workflow_dispatch:
jobs:
publish:
cratesio-publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand All @@ -17,3 +17,18 @@ jobs:
run: cargo publish -p clue
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
aur-publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@v2
with:
pkgname: clue
pkgbuild: ./PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: Update AUR package
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
25 changes: 25 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Maintainer: Felice D'Angelo <felice.dangelo2013@gmail.com>
pkgname=clue
pkgver=3.2.0
pkgrel=1
pkgdesc="Clue is a programming language that compiles blazingly fast into Lua code with a syntax similar to languages like C or Rust."
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'arm')
url="https://github.com/ClueLang/Clue"
license=('MIT')
depends=()
makedepends=('cargo' 'rust')
checkdepends=()
optdepends=()
source=("git+https://github.com/ClueLang/Clue.git#tag=v${pkgver}")
noextract=()
sha256sums=('SKIP')

build() {
cd "$srcdir/Clue"
cargo build --release
}

package() {
cd "$srcdir/Clue"
install -Dm755 target/release/clue "$pkgdir/usr/bin/clue"
}

0 comments on commit a60a395

Please sign in to comment.