From 117e3106238abe59dff5440eebdb2255b418b20f Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sat, 12 Feb 2022 05:53:28 +0100 Subject: Add a rust command line calculator new file: coriolinus-calc/.SRCINFO new file: coriolinus-calc/PKGBUILD --- coriolinus-calc/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 coriolinus-calc/PKGBUILD (limited to 'coriolinus-calc/PKGBUILD') diff --git a/coriolinus-calc/PKGBUILD b/coriolinus-calc/PKGBUILD new file mode 100644 index 0000000..bbfad1b --- /dev/null +++ b/coriolinus-calc/PKGBUILD @@ -0,0 +1,22 @@ +pkgbase=calc +pkgname=coriolinus-${pkgbase} +pkgver=0.3.0 +pkgrel=1 +pkgdesc='Rust command line calculator' +url="https://github.com/coriolinus/${pkgbase}" +arch=('x86_64') +license=('GPL3') +makedepends=('rust') +source=("${url}/archive/v${pkgver}.tar.gz") +sha256sums=('a1ea19acb41508129de3508a87b6d68743b8e5696bb34bada09ad706fd2aa63b') + +build() { + cd "${pkgbase}-${pkgver}" + cargo build --release --locked --all-features --target-dir=target +} + +package() { + cd "${pkgbase}-${pkgver}" + install -Dm 755 target/release/${pkgbase} -t ${pkgdir}/usr/bin + install -Dm 644 README.md CHANGELOG.md -t ${pkgdir}/usr/share/doc/${pkgname} +} -- cgit v1.2.3-70-g09d2