MiddleArch/pkgtmpl/fxlibc.j2

29 lines
755 B
Plaintext
Raw Normal View History

2021-08-31 00:11:27 +02:00
pkgname={{ name }}
2021-06-08 23:08:11 +02:00
pkgver={{ tag }}
pkgrel=1
pkgdesc="A C standard library for fx Casio calculators, built for gint"
arch=('i686' 'x86_64')
url="https://gitea.planet-casio.com/Lephenixnoir/${pkgname}"
licence=('unkwown')
2021-08-31 00:11:27 +02:00
depends=('fxsdk' 'openlibm-casio')
2021-06-08 23:08:11 +02:00
makedepends=('fxsdk')
options=('!buildflags' '!strip')
source=("$pkgname-$pkgver.tar.gz::https://gitea.planet-casio.com/Vhex-Kernel-Core/fxlibc/archive/${pkgver}.tar.gz")
sha256sums=('{{ hash }}')
prepare() {
cd "${srcdir}/${pkgname}"
rm -rf build-gint
cmake -B build-gint -DFXLIBC_TARGET=gint -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-sh.cmake
}
build() {
cd "$srcdir/${pkgname}"
make -C build-gint
}
package() {
cd "$srcdir/${pkgname}"
make -C build-gint DESTDIR="$pkgdir" install
}