blob: 8c60240ba84076f7a26ddf749b4ce183975400db (
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
|
# Maintainer: Kyle Malling <kmalling16@gmail.com>
pkgname=clockem-git
_pkgname=clockem
pkgver=2.0.0
pkgrel=1
pkgdesc='Clock & other desktop widgets for wayland.'
url='https://github.com/justbechill/clockem'
makedepends=('rust')
depends=('gtk4-layer-shell')
license=('MIT')
arch=('any')
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
cargo build --release
}
package() {
cd "${srcdir}/${_pkgname}"
mkdir -p ${pkgdir}/usr/bin/
mv target/release/clockem ${pkgdir}/usr/bin/
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|