Merge branch 'AUR' into 'master'

added PKGBUILD for AUR

This is my first merge request and PKGBUILD for the AUR. 

See merge request hyask/swaysome!7
This commit is contained in:
Skia 2022-11-29 09:12:26 +00:00
commit 25b92a7d26
2 changed files with 45 additions and 0 deletions

15
pkgbuild/.SRCINFO Normal file
View file

@ -0,0 +1,15 @@
pkgbase = swaysome-git
pkgdesc = Awesome WM like workspaces
pkgver = 1.1.5.r46.gf6278fc
pkgrel = 1
url = https://gitlab.com/hyask/swaysome
arch = x86_64
license = MIT
makedepends = git
makedepends = rust
provides = swaysome
conflicts = swaysome
source = swaysome::git+https://gitlab.com/hyask/swaysome
md5sums = SKIP
pkgname = swaysome-git

30
pkgbuild/PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: XXX
pkgname=swaysome-git
_pkgname=swaysome
pkgver=1.1.5.r46.gf6278fc
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"
}