mirror of
https://gitlab.com/hyask/swaysome.git
synced 2025-12-10 07:44:43 +01:00
This is to show that it isn't used and need no bump upon new release. Was discussed on https://gitlab.com/hyask/swaysome/-/merge_requests/7
30 lines
622 B
Bash
30 lines
622 B
Bash
# Maintainer: XXX
|
|
|
|
pkgname=swaysome-git
|
|
_pkgname=swaysome
|
|
pkgver=0.0.0
|
|
pkgrel=1
|
|
pkgdesc='Awesome WM like workspaces'
|
|
arch=('x86_64')
|
|
url='https://gitlab.com/hyask/swaysome'
|
|
license=('MIT')
|
|
makedepends=('git' 'rust')
|
|
provides=("$_pkgname")
|
|
conflicts=("$_pkgname")
|
|
source=("$_pkgname::git+$url")
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$_pkgname"
|
|
echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)
|
|
}
|
|
|
|
build() {
|
|
cd "$_pkgname"
|
|
cargo build --release
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname"
|
|
install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
|
|
}
|