summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e5b22ea45beac1ff831a37fa7e8bfacd7e9b9ea (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
# Maintainer: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com>

_pkgbasename=libatasmart
pkgname=${_pkgbasename}-git
pkgver=0.19.r2.g56afac4
pkgrel=1
pkgdesc='ATA S.M.A.R.T. reader and parser library'
arch=('x86_64')
url='https://github.com/libatasmart/libatasmart'
license=('LGPL')
depends=('glibc' 'systemd-libs')
makedepends=(git meson)
provides=("libatasmart=$pkgver")
conflicts=('libatasmart')
source=("git+${url}")
sha256sums=('SKIP')

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

build() {
  arch-meson "${_pkgbasename}" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}