Skip to content

Commit

Permalink
build: add PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
numToStr committed Apr 21, 2022
1 parent 3ddb10d commit fc846ee
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Maintainer: {{AUTHOR}} <{{EMAIL}}>

pkgname={{NAME}}
pkgver={{VERSION}}
pkgrel=1
pkgdesc="{{DESC}}"
arch=('x86_64' 'aarch64' 'armv7')
url={{URL}}
license=('MIT')
provides=($pkgname)
conflicts=($pkgname)

source_x86_64=("$url/releases/download/$pkgver/$pkgname-x86_64-unknown-linux-gnu.tar.gz")
md5sums_x86_64=(SKIP)

source_armv7=("$url/releases/download/$pkgver/$pkgname-armv7-unknown-linux-gnueabihf.tar.gz")
md5sums_armv7=(SKIP)

source_aarch64=("$url/releases/download/$pkgver/$pkgname-aarch64-unknown-linux-gnu.tar.gz")
md5sums_aarch64=(SKIP)

package() {
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
PKG_DESC=$(sed -n 's/^description = "\(.*\)"/\1/p' Cargo.toml | head -n1)
PKG_AUTHORS=$(sed -n 's/^authors = \["\(.*\)"\]/\1/p' Cargo.toml)
PKG_HOMEPAGE=$(sed -n 's/^homepage = "\(.*\)"/\1/p' Cargo.toml)
PKG_BASENAME="${PKG_NAME}-${PKG_VERSION}-${{ matrix.job.target }}"
PKG_BASENAME="${PKG_NAME}-${{ matrix.job.target }}"
echo ::set-output name=PKG_VERSION::${PKG_VERSION}
echo ::set-output name=PKG_NAME::${PKG_NAME}
Expand Down

0 comments on commit fc846ee

Please sign in to comment.