summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeposite Pirate2022-02-12 05:53:28 +0100
committerDeposite Pirate2022-02-12 05:53:28 +0100
commit117e3106238abe59dff5440eebdb2255b418b20f (patch)
tree7785e9ad0d0a60276be725b730bc7fe62607d222
parent52925afc7c6378ebd490baf312a2d2a8152f54cb (diff)
Add a rust command line calculator
new file: coriolinus-calc/.SRCINFO new file: coriolinus-calc/PKGBUILD
-rw-r--r--coriolinus-calc/.SRCINFO12
-rw-r--r--coriolinus-calc/PKGBUILD22
2 files changed, 34 insertions, 0 deletions
diff --git a/coriolinus-calc/.SRCINFO b/coriolinus-calc/.SRCINFO
new file mode 100644
index 0000000..4cf55e9
--- /dev/null
+++ b/coriolinus-calc/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = calc
+ pkgdesc = Rust command line calculator
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://github.com/coriolinus/calc
+ arch = x86_64
+ license = GPL3
+ makedepends = rust
+ source = https://github.com/coriolinus/calc/archive/v0.3.0.tar.gz
+ sha256sums = a1ea19acb41508129de3508a87b6d68743b8e5696bb34bada09ad706fd2aa63b
+
+pkgname = coriolinus-calc
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}
+}