diff options
| author | Shulhan <ms@kilabit.info> | 2022-09-18 00:53:43 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-09-18 01:02:00 +0700 |
| commit | 403eb5ddbdbfd1d26fe2fa5710660230d7bb7e58 (patch) | |
| tree | fdebb6628d85f7ead8c76f11fc492412dcfea7af | |
| parent | 30f1269bc73dcda364def5e61d5dfd4a2c3ec6fc (diff) | |
| download | gotp-403eb5ddbdbfd1d26fe2fa5710660230d7bb7e58.tar.xz | |
all: move the installation steps in AUR to Makefile.
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | _AUR/PKGBUILD | 14 |
2 files changed, 9 insertions, 8 deletions
@@ -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 } |
