diff options
| author | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-03-20 15:32:46 +0100 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-03-20 15:35:08 +0100 |
| commit | ff4883d9d9b80680ff4e594ce27e8ad48c22cb50 (patch) | |
| tree | 4c17780175b75bca26c3ff8b798b73a832988d0c | |
| parent | ec908d6c6b77c3f847b9a59af58a2c2641448a65 (diff) | |
| download | aports-ff4883d9d9b80680ff4e594ce27e8ad48c22cb50.tar.bz2 aports-ff4883d9d9b80680ff4e594ce27e8ad48c22cb50.tar.xz | |
community/gotop: Fix binary installation
The binary has been moved to ./cmd/gotop/ and would not be installed
correctly without this change. The change also makes sure that the
installation works independent of the exact location of the main
package.
| -rw-r--r-- | community/gotop/APKBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/community/gotop/APKBUILD b/community/gotop/APKBUILD index 274fbbfb39..474458175d 100644 --- a/community/gotop/APKBUILD +++ b/community/gotop/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leo <thinkabit.ukim@gmail.com> pkgname=gotop pkgver=3.5.0 -pkgrel=0 +pkgrel=1 pkgdesc="Terminal based graphical activity monitor" url="https://github.com/xxxserxxx/gotop" arch="all" @@ -19,11 +19,13 @@ prepare() { } build() { - GOPATH="$srcdir" go build -v -o bin/$pkgname . + mkdir bin + GOPATH="$srcdir" go build -v -o bin/ ./... } package() { - install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname + mkdir -p "$pkgdir"/usr/bin/ + install -m755 ./bin/* "$pkgdir"/usr/bin/ } cleanup_srcdir() { |
