Skip to content

Commit

Permalink
feat(ci): update AUR package config
Browse files Browse the repository at this point in the history
  • Loading branch information
bloznelis committed Oct 13, 2024
1 parent ea2897c commit 13ab57b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/aur/PKGBUILD.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Maintainer: Energi <lukas.bloznelis@gmail.com>

pkgname=krowbar
pkgname=krowbar-git
_binname=krowbar
pkgver=${PKGVER}
pkgrel=1
pkgdesc="BSPWM status bar"
Expand All @@ -10,24 +11,24 @@ license=(MIT)
groups=()
depends=(gtk4)
makedepends=(git cargo)
provides=("$pkgname")
conflicts=("$pkgname")
provides=("$_binname")
conflicts=("$_binname")
source=("git+$url")
source=("$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('SKIP')

build() {
cd "${pkgname}-${pkgver}"
cd "${_binname}-${pkgver}"
cargo build --release
}

check() {
cd "${pkgname}-${pkgver}"
cd "${_binname}-${pkgver}"
cargo check
}

package() {
cd "${pkgname}-${pkgver}"
install -Dm755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
cd "${_binname}-${pkgver}"
install -Dm755 target/release/$_binname "$pkgdir/usr/bin/$_binname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_binname/"
}
4 changes: 2 additions & 2 deletions .github/aur/SRCINFO.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkgbase = krowbar
pkgbase = krowbar-git
pkgdesc = BSPWM status bar
pkgver = ${PKGVER}
pkgrel = 1
Expand All @@ -13,4 +13,4 @@ pkgbase = krowbar
source = https://github.com/bloznelis/krowbar/archive/refs/tags/${PKGVER}.tar.gz
sha256sums = SKIP

pkgname = krowbar
pkgname = krowbar-git

0 comments on commit 13ab57b

Please sign in to comment.