blob: 9960976a4e46a342a536a5f3fad04cde0a7b15f7 (
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
|
# Maintainer: Canmi21 <9997200@qq.com>
# Contributor: Canmi(Canmi21)
pkgname=system-age
pkgver=1.0.2
pkgrel=1
pkgdesc="Check the installation time of your Arch Linux."
arch=('x86_64')
url="https://github.com/canmi21/age"
license=('MIT')
depends=('glibc')
makedepends=('cargo')
source=("git+https://github.com/canmi21/age.git#branch=master"
"https://raw.githubusercontent.com/canmi21/age/master/LICENSE")
sha256sums=('SKIP' 'SKIP')
prepare() {
cd "$srcdir"
mv age age-$pkgver
}
build() {
cd "$srcdir/age-$pkgver"
cargo build --release
}
package() {
cd "$srcdir/age-$pkgver"
install -Dm755 target/release/age "$pkgdir/usr/bin/age"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|