summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBao Trinh2023-06-22 15:23:41 -0500
committerBao Trinh2023-06-22 15:23:41 -0500
commitb961a735472466c5cc8a75638a41107cd05666a1 (patch)
treed872b6a1ea3c41d012da332b06b0ff2ac8ec4b72
downloadaur-b961a735472466c5cc8a75638a41107cd05666a1.tar.gz
v0.6.2
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD38
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..11ba0834d7a0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = rtss
+ pkgdesc = Relative TimeStamps for Stuff
+ pkgver = 0.6.2
+ pkgrel = 1
+ url = https://github.com/Freaky/rtss
+ arch = i686
+ arch = x86_64
+ arch = aarch64
+ license = MIT
+ makedepends = cargo
+ depends = glibc
+ depends = gcc-libs
+ source = rtss-0.6.2.tar.gz::https://github.com/Freaky/rtss/archive/refs/tags/v0.6.2.tar.gz
+ sha256sums = 2e526d77eb3cd1d691dbcec937992c297aab4bc369b121620ee4903cfbd1525e
+
+pkgname = rtss
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..4fe4a3562b5a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: qubidt <qubidt at gmail dot com>
+
+pkgname=rtss
+pkgver=0.6.2
+pkgrel=1
+pkgdesc="Relative TimeStamps for Stuff"
+arch=('i686' 'x86_64' 'aarch64')
+url="https://github.com/Freaky/rtss"
+license=('MIT')
+depends=('glibc' 'gcc-libs')
+makedepends=('cargo')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
+sha256sums=('2e526d77eb3cd1d691dbcec937992c297aab4bc369b121620ee4903cfbd1525e')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo build --release --frozen --all-features
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ export RUSTUP_TOOLCHAIN=stable
+ cargo test --release --frozen --all-features
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -vDm 755 -t "${pkgdir}/usr/bin" "target/release/${pkgname}"
+ install -vDm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
+ install -vDm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE.txt'
+}