From 188803220145e1ce645199568041683ad5199b22 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Fri, 15 Nov 2024 18:19:21 +0800 Subject: [PATCH] bc 6.7.5-1 --- PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..13d94cf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=bc +pkgver=6.7.5 +pkgrel=1 +pkgdesc="Implementation of dc and POSIX bc with GNU extensions" +arch=('x86_64') +url="https://git.gavinhoward.com/gavin/bc" +license=('BSD-2-Clause') +depends=('readline' 'ncurses') +source=(https://github.com/gavinhoward/bc/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(c3e02c948d51f3ca9cdb23e011050d2d3a48226c581e0749ed7cbac413ce5461) + +build() { + cd ${pkgname}-${pkgver} + + ./configure --prefix=/usr --libdir=/usr/lib64 -G -O3 -r + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}