summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b7556e69bd281097b4e6e9c39bdd4ecf52a644d (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
# Maintainer: lmartinez
pkgname=tllist-git
_pkgname=${pkgname%-git}
pkgver=1.0.5.r0.gf2d806f
pkgrel=2
pkgdesc="A C header file only implementation of a typed linked list"
arch=('x86_64' 'aarch64')
url="https://codeberg.org/dnkl/tllist"
license=('MIT')
makedepends=('git' 'meson')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/-/.r/;s/-/./'
}

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

check() {
  meson test -C build
}

package() {
  DESTDIR="${pkgdir}/" meson install -C build
  install -Dm 644 "$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}