mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 20:57:22 -07:00
Merge pull request #57 from OpenCHAMI/pkgbuild
Add `PKGBUILD` to install `magellan` on Arch Linux
This commit is contained in:
commit
7b4186b08e
2 changed files with 32 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,4 +1,6 @@
|
||||||
magellan
|
magellan
|
||||||
emulator/rf-emulator
|
emulator/rf-emulator
|
||||||
**/*.db
|
**/*.db
|
||||||
dist/*
|
**.tar.gz
|
||||||
|
**.tar.zst
|
||||||
|
**.part
|
||||||
|
|
|
||||||
29
dist/archlinux/PKGBUILD
vendored
Normal file
29
dist/archlinux/PKGBUILD
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Maintainer: David J. Allen <allend@lanl.gov>
|
||||||
|
pkgname=magellan
|
||||||
|
pkgver=v0.1.5
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Redfish-based BMC discovery tool written in Go"
|
||||||
|
arch=("x86_64")
|
||||||
|
url="https://github.com/OpenCHAMI/magellan"
|
||||||
|
license=('MIT')
|
||||||
|
groups=("openchami")
|
||||||
|
provides=('magellan')
|
||||||
|
conflicts=('magellan')
|
||||||
|
source_x86_64=("${url}/releases/download/${pkgver}/${pkgname}_Linux_x86_64.tar.gz")
|
||||||
|
sha256sums_x86_64=('1bb028d592d5389b519362e6aa7021f27443f0b36471e09ee7f47ab5cb6d4d7f')
|
||||||
|
|
||||||
|
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
|
||||||
|
# a description of each element in the source array.
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir" || exit
|
||||||
|
printf "%s" "$(git describe --tags --abbrev=0)"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/" || exit
|
||||||
|
|
||||||
|
# install the binary to /usr/bin
|
||||||
|
mkdir -p "${pkgdir}/usr/bin"
|
||||||
|
install -m755 magellan "${pkgdir}/usr/bin/magellan"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue