blob: 899318278f6fe467ae019a09e02425427d7f6879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Komeil Parseh <ahmdparsh129@gmail.com>
pkgname=starwm-git
_gitname=starwm
pkgver=r64.da02779
pkgrel=1
epoch=2
pkgdesc=" StarWM is an extensible, floating and tiling, X window manager for Linux-based operating systems written in Rust. "
arch=('any')
url="https://github.com/starwm/starwm"
install="${_gitname}.install"
license=('GPL')
makedepends=('cargo' 'git')
depends=('libx11' 'libxcb' 'alacritty' 'rofi')
provides=('starwm-git')
optdepends=('maim: take a screenshot' 'xclip: save screenshots in clipboard')
conflicts=('starwm' 'starwm-git')
source=("${pkgname}::git+${url}")
md5sums=('SKIP')
build() {
cd "${srcdir}/${pkgname}"
cargo build --release
}
pkgver() {
cd "${srcdir}/${pkgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
# copy license
install -d "${pkgdir}/usr/share/licenses/${_gitname}"
install -m644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
# copy starwm binfile into /bin
install -Dm755 "${srcdir}/${pkgname}/target/release/${_gitname}" -t "${pkgdir}/usr/bin"
# copy starwm desktop file into xsession dir
install -Dm644 "${srcdir}/${pkgname}/${_gitname}.desktop" "${pkgdir}/usr/share/xsessions/${_gitname}.desktop"
}
|