aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-09-18 00:53:43 +0700
committerShulhan <ms@kilabit.info>2022-09-18 01:02:00 +0700
commit403eb5ddbdbfd1d26fe2fa5710660230d7bb7e58 (patch)
treefdebb6628d85f7ead8c76f11fc492412dcfea7af
parent30f1269bc73dcda364def5e61d5dfd4a2c3ec6fc (diff)
downloadgotp-403eb5ddbdbfd1d26fe2fa5710660230d7bb7e58.tar.xz
all: move the installation steps in AUR to Makefile.
-rw-r--r--Makefile3
-rw-r--r--_AUR/PKGBUILD14
2 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index cab823e..1f46a8e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,8 @@ build:
go build $(LDFLAGS) -o _sys/usr/bin/ ./cmd/...
install: build
- install _sys/usr/bin/gotp $(DESTDIR)/usr/bin/
+ install -D _sys/usr/bin/gotp $(DESTDIR)/usr/bin/gotp
+ install -Dm644 COPYING $(DESTDIR)/usr/share/licenses/gotp/COPYING
serve-doc:
ciigo serve _doc
diff --git a/_AUR/PKGBUILD b/_AUR/PKGBUILD
index cbddaa4..601342b 100644
--- a/_AUR/PKGBUILD
+++ b/_AUR/PKGBUILD
@@ -1,7 +1,9 @@
# Maintainer: shulhan <ms@kilabit.info>
+## SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+## SPDX-License-Identifier: GPL-3.0-or-later
pkgname=gotp-git
-pkgver=0.2.0.r5.gdbfed69
+pkgver=0.2.2.r2.g008f3a5
pkgrel=1
pkgdesc="A command line interface to manage and generate Time-based One Time Password (TOTP)"
@@ -16,10 +18,9 @@ makedepends=(
provides=('awwan')
-source=(
- "$pkgname::git+https://git.sr.ht/~shulhan/gotp"
- #"$pkgname::git+file:///home/ms/go/src/git.sr.ht/~shulhan/gotp"
-)
+source=("$pkgname::git+https://git.sr.ht/~shulhan/gotp")
+#source=("$pkgname::git+file:///home/ms/go/src/git.sr.ht/~shulhan/gotp")
+
md5sums=(
'SKIP'
)
@@ -36,6 +37,5 @@ build() {
package() {
cd "$pkgname"
- install -Dm755 _bin/gotp $pkgdir/usr/bin/gotp
- install -Dm755 COPYING $pkgdir/usr/share/licenses/gotp/COPYING
+ make DESTDIR="$pkgdir" install
}