summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2aa4c94bccfee99149832e0cfbb0267739297f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: 

pkgname=openseachest-git
pkgver=23.03.r1.g03a4576
pkgrel=2
pkgdesc="Utilities for performing various operations on SATA, SAS, NVMe, and USB storage devices"
arch=(x86_64 i686 arm armv6h armv7h aarch64)
url="https://github.com/Seagate/openSeaChest"
license=(MPL2)
depends=(glibc)
makedepends=(git ninja meson)
provides=(openseachest)
conflicts=(openseachest)
source=("git+https://github.com/Seagate/openSeaChest.git"
        "git+https://github.com/Seagate/opensea-common.git"
        "git+https://github.com/Seagate/opensea-transport.git"
        "git+https://github.com/Seagate/opensea-operations.git"
        "seagate-wingetopt::git+https://github.com/Seagate/wingetopt.git")
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

prepare() {
  cd openSeaChest
  git submodule init
  git config submodule.opensea-common.url     "${srcdir}/opensea-common"
  git config submodule.opensea-transport.url  "${srcdir}/opensea-transport"
  git config submodule.opensea-operations.url "${srcdir}/opensea-operations"
  git config submodule.wingetopt.url          "${srcdir}/seagate-wingetopt"
  git -c protocol.file.allow=always submodule update
}

pkgver() {
  cd openSeaChest
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd openSeaChest
  arch-meson --buildtype=release builddir
  ninja -C builddir
}

package() {
  cd openSeaChest
  DESTDIR="${pkgdir}/" ninja -C builddir install
}