-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
33 lines (27 loc) · 731 Bytes
/
PKGBUILD
File metadata and controls
33 lines (27 loc) · 731 Bytes
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.1
pkgrel=2
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"
}