update: move lfs/* to lfs-12.2-systemd/

This commit is contained in:
2024-11-28 00:58:22 -05:00
parent c920403fd2
commit 47c22478ed
22 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
pkgname=bc
pkgver=6.7.6
pkgdesc='An arbitrary precision calculator language'
homepage="https://git.gavinhoward.com/gavin/bc"
license=('GPL-3.0-only')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://github.com/gavinhoward/bc/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
md5sums=("a47aa5e4e7395fbcd159a9228613b97b")
options=(!strip)
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
CFLAGS+=" -O3 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" \
CC=gcc \
./configure --prefix=/usr -G -r
make
}
src_check() {
make test
}
src_install() {
make DESTDIR="$pkgdir" install
}