diff options
author | jzbor | 2023-11-07 16:39:58 +0000 |
---|---|---|
committer | jzbor | 2023-11-07 16:39:58 +0000 |
commit | 5a124a7ba12027f0b51238630cd5f43c6f441f19 (patch) | |
tree | 4c86c23b4d1259034d40f97308d24f0447855cb6 | |
parent | abcfffdc345008a3e11a68cb4d0ffdf6603251cb (diff) | |
download | aur-5a124a7ba12027f0b51238630cd5f43c6f441f19.tar.gz |
Init marswm (stable)
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 21 insertions, 20 deletions
@@ -1,6 +1,6 @@ -pkgbase = marswm-git +pkgbase = marswm pkgdesc = A rusty successor to moonwm - pkgver = 0.4.0.r4.gd0ca669 + pkgver = 0.5.1 pkgrel = 1 url = https://github.com/jzbor/marswm arch = x86_64 @@ -10,12 +10,13 @@ pkgbase = marswm-git depends = libx11 depends = libxft depends = libxinerama - depends = xmenu + optdepends = rofi: application menu, + optdepends = xmenu: context menus, provides = marswm provides = mars-relay conflicts = marswm conflicts = mars-relay - source = git+https://github.com/jzbor/marswm + source = -0.5.1.tar.gz::https://github.com/jzbor/marswm/archive/0.5.1.tar.gz sha512sums = SKIP -pkgname = marswm-git +pkgname = marswm @@ -1,38 +1,38 @@ # Maintainer: jzbor <zborof at posteo dot de> -pkgname=marswm-git -pkgver=0.4.0.r4.gd0ca669 +pkgname=marswm +pkgver=0.5.1 pkgrel=1 pkgdesc="A rusty successor to moonwm" arch=('x86_64') url="https://github.com/jzbor/marswm" license=('custom') -depends=(libxrandr libx11 libxft libxinerama xmenu) +depends=(libxrandr libx11 libxft libxinerama) +optdepends=( + "rofi: application menu", + "xmenu: context menus", +) makedepends=('cargo') provides=(marswm mars-relay) conflicts=(marswm mars-relay) -source=("git+$url") +source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha512sums=('b0c957003f0df1c3fdb750e0f3a253ed39014c900c82ffa7be254afe6c2a60949ea81d2628bf3d40ad4f3547093b274fb20831144c2427b417262812a10d563d') sha512sums=('SKIP') -pkgver() { - cd "${pkgname%-git}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' -} - prepare() { - cd "${pkgname%-git}" + cd "${pkgname}-${pkgver}" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "${pkgname%-git}" + cd "${pkgname}-${pkgver}" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } package() { - cd "${pkgname%-git}" - install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" - install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%wm-git}-relay" - install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%wm-git}bar" + cd "${pkgname}-${pkgver}" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname}" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%wm}-relay" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%wm}bar" } |