blob: b6fc91d0aacb6e4dfdf45f350932dd17a283344a (
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
|
# Maintainer: Aren <rn+aur@peacevolution.org>
# Contributor: dni <office@dnilabs.com>
pkgname=mnc
pkgver=0.4
pkgrel=1
pkgdesc="get the time in seconds to next cron job"
url="https://git.sr.ht/~anjan/mnc"
arch=('x86_64' 'armv7h' 'aarch64')
license=('Unlicense')
makedepends=('go' 'binutils')
source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~anjan/mnc/archive/$pkgver.tar.gz")
sha512sums=('22f6ce2a6da34ce0d70fb9e6608e1cbd14ac1dd16e38700a01c627b3ea4d43c4492db528708b9e6efc1b018ef8091434da43f3641e3f34648a68239c26bc249d')
build() {
cd "$pkgname-$pkgver"
export GOFLAGS="$GOFLAGS -modcacherw"
go build mnc.go
strip mnc
}
package() {
cd "$pkgname-$pkgver"
mkdir -p "$pkgdir"/usr/bin
install mnc "$pkgdir"/usr/bin
}
|