forked from TheFenrisLycaon/Rust-Basics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
31 lines (26 loc) · 883 Bytes
/
PKGBUILD
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: Rishabh Anand
pkgname=pheme
url="https://github.com/LycaonIndustries/pheme"
pkgver=0.1.0
pkgrel=1
pkgdesc="A basic new reader in Rust. (WIP)"
provides=("pheme")
license=("MIT")
packager="Rishabh Anand <rishabhanandxz@gmail.com>"
maintainer="Rishabh Anand <rishabhanandxz@gmail.com>"
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e92de6f88629aff0df9639ba71043072f5c8c07d388661b7a1f2d00f5f8d89b9')
arch=('any')
depends=('gcc-libs')
makedepends=('cargo')
options=(!lto)
build() {
cd "$pkgname-$pkgver"
cargo build -q --frozen --release --all-features --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}