pkgname=libtracefs pkgver=1.8.1 pkgrel=1 pkgdesc='Linux kernel trace file system library' url='https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/' arch=('x86_64') license=('LGPL-2.1') depends=('libtraceevent') source=("https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/${pkgname}-${pkgver}.tar.gz") sha256sums=('d295aa20d711c313a9e229dbd15ba14026f0c1a50d57ae8b0823cc561b23745f') build() { cd ${pkgname}-${pkgver} make prefix=/usr libdir=/usr/lib } package() { cd ${pkgname}-${pkgver} make prefix=/usr libdir=/usr/lib DESTDIR=${pkgdir} install # no make flag to remove static lib rm ${pkgdir}/usr/lib/libtracefs.a }