# Maintainer: Eldeberen pkgname=cahute pkgver=0.4 pkgrel=1 pkgdesc="A toolkit to handle communication and file formats related to CASIO calculators" arch=('x86_64') url="https://cahuteproject.org" license=('custom:CeCILL') depends=('libusb' 'sdl2') makedepends=('cmake' 'python' 'python-toml') provides=('p7' 'libp7' 'p7screen') replaces=('p7' 'libp7' 'p7screen') options=(!strip) install="$pkgname.install" source=("https://ftp.cahuteproject.org/releases/$pkgname-$pkgver.tar.gz") b2sums=("54006afd5ca624f0f89dcce02f858227b503ceec7884e6f32448d42cc470224fa4860d2b3713ac587f4bc9711766db37a5cf88659eaf1c759375eb71360f3b2e") prepare() { cd "$pkgname-$pkgver" # ensure a clean build [[ -d build ]] && rm -rf build mkdir build } build() { cmake -B build -S "$pkgname-$pkgver" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build --strip install -Dm644 "$pkgname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }