48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Maintainer: Lily Tsuru <lily@crustywindo.ws>
|
|
|
|
pkgname='msecli'
|
|
pkgdesc='Micron Storage Executive CLI for Linux'
|
|
|
|
pkgver='10.01.012024.00'
|
|
pkgrel=1
|
|
|
|
url='https://www.micron.com/sales-support/downloads/software-drivers/storage-executive-software#cli'
|
|
|
|
# There is an ARM(32?) binary available, but
|
|
# it's packaged completely differently, because of course it is.
|
|
# That will be handled later.
|
|
arch=('x86_64')
|
|
|
|
depends=('zlib')
|
|
|
|
# Needed because the installer (Please shame InstallBuilder!) kind of sucks.
|
|
makedepends=('fakeroot')
|
|
|
|
source=(
|
|
'https://www.micron.com/content/dam/micron/global/public/products/software/storage-executive-software/msecli/msecli-linux.run'
|
|
)
|
|
|
|
sha256sums=(
|
|
'22ccdd0fff5f021f89036e9b491d6ba174a8f0b0d4feb7f80ae448dc78d4d717'
|
|
)
|
|
|
|
b2sums=(
|
|
'f9fdc4b199dc397be3dcc16edb9ecbc0397b16a2ba21eb235430c6d92990024978d28f85dfeacfd9b7ceac1638fc0cd2f68acbcf90bcd11e29bb0d68184a39aa'
|
|
)
|
|
|
|
prepare() {
|
|
chmod +x ./msecli-linux.run
|
|
}
|
|
|
|
# TODO: Less rickity verison
|
|
pkgver() {
|
|
./msecli-linux.run --version | cut -d' ' -f 5
|
|
}
|
|
|
|
package() {
|
|
# "Extract" the installer, it will complain it can't write a file it wants to write, so we just || true.
|
|
# Additionally, remove uninstall files. We have a package manager for that :P
|
|
./msecli-linux.run --mode unattended --unattendedmodeui none --prefix $pkgdir/opt/micron/msecli/ || true
|
|
rm $pkgdir/opt/micron/msecli/Uninstall*
|
|
}
|