Files
extra/unittest-cpp/PKGBUILD
2025-06-22 20:39:04 -05:00

36 lines
868 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=unittest-cpp
pkgver=2.0.0
pkgrel=1
pkgdesc='Lightweight unit testing framework for C++'
url="https://github.com/$pkgname/$pkgname/"
arch=(i686 x86_64)
license=(Expat)
depends=(gcc-libs)
source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz)
sha512sums=('39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab')
prepare() {
cd $pkgname-$pkgver
sed -i "s#m4_esyscmd_s[(][[]git[ ]describe[ ][-][-]tags[ ][|][ ]cut[ ][-]c2[-][]][)]#$pkgver#" configure.ac
autoreconf -vfi
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname
}
# vim:set sw=2 et: