blob: b994fadc95ba6f49656c97630e5132d628c419c7 (
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
|
# Maintainer: Antony Kellermann <antony@aokellermann.dev>
pkgname=sway-scratch
pkgver=0.2.0
pkgrel=1
pkgdesc='Automatically starting named scratchpads for sway'
arch=('x86_64')
url='https://github.com/aokellermann/sway-scratch'
license=('MIT')
depends=(glibc gcc-libs)
makedepends=(git cargo)
optdepends=('sway: sway support'
'i3-wm: i3 support')
_tag=c4cb205ac97cec53b43fc4aa1d050c16934183b0 # git rev-parse v${pkgver}
source=("${pkgname}::git+${url}?signed#tag=${_tag}")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname}
git describe --tags | sed 's/^v//'
}
build() {
cd ${pkgname}
cargo build --release
}
package() {
install -Dm755 ${srcdir}/${pkgname}/target/release/${pkgname} -t "${pkgdir}"/usr/bin/
install -Dm644 ${srcdir}/${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
|