summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authororhun2020-07-31 14:51:20 +0300
committerorhun2020-07-31 14:51:20 +0300
commitd015a942ec8b23d520ad4f50e78d0e130d440741 (patch)
treefaf940059aeaddcc94a0c6460c33e8460ae93b8c
downloadaur-d015a942ec8b23d520ad4f50e78d0e130d440741.tar.gz
Release v2.1.0
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD27
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eed4f652979
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = notp
+ pkgdesc = One Time Password Generator
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = https://github.com/kondanta/notp/
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ source = notp-2.1.0.tar.gz::https://github.com/kondanta/notp//archive/v2.1.0.tar.gz
+ sha512sums = 606a862708b0dbb68fdb48ad26ee48f4263e39507195702ffb3f1d2e71a57b4371a66b3aaddc8a7bc93fa9be27eb3c1d716e1229ca90e91f889a639764c69535
+
+pkgname = notp
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6b4e777f696
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/pkg/
+/src/
+/notp/
+*.tar.xz
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..160d8fda47d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: orhun <orhunparmaksiz@gmail.com>
+pkgname=notp
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="One Time Password Generator"
+arch=('x86_64')
+url="https://github.com/kondanta/notp/"
+license=('MIT')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('606a862708b0dbb68fdb48ad26ee48f4263e39507195702ffb3f1d2e71a57b4371a66b3aaddc8a7bc93fa9be27eb3c1d716e1229ca90e91f889a639764c69535')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --locked --all-features
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --release --locked
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+} \ No newline at end of file