summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba221f107eccb5e8f533617b83caef88114b6746 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>

pkgname=linux-test-project
pkgver=20230929
pkgrel=2
pkgdesc="Collection of tools for testing the Linux kernel and related features"
arch=(i686 x86_64)
license=(GPL2)
url="https://linux-test-project.github.io/"
depends=(acl bash gawk libcap perl python numactl keyutils openssl glibc)
options=(!lto !strip)
source=("https://github.com/linux-test-project/ltp/releases/download/${pkgver}/ltp-full-${pkgver}.tar.xz")
sha256sums=('eb161ff8f1966a1f3428fd4561eb20ebb9f83b7519e35cc12fc66bcfa7983b6b')

build() {
  cd "${srcdir}/ltp-full-${pkgver}"
  ./configure \
    --prefix=/usr/share \
    --mandir=/usr/share/man \
    --with-bash

  make
}

check() {
  cd "${srcdir}/ltp-full-${pkgver}"
  make test
}

package() {
  cd "${srcdir}/ltp-full-${pkgver}"
  make DESTDIR="$pkgdir" install
}