Added C-like calculator lcn2/calc PKGBUILD.

This commit is contained in:
2018-12-31 10:13:51 +00:00
parent 5c2fe54fda
commit a1789c8462
2 changed files with 57 additions and 0 deletions

13
calc/Makefile.patch Normal file
View File

@@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 44b250a..c402048 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ RPM_TOP= ${HOME}/rpm/calc
# compiler set #
################
-CCWERR= -Werror -Wextra -pedantic
+CCWERR=
#################################
# clang -fsanitize test options #

44
calc/PKGBUILD Normal file
View File

@@ -0,0 +1,44 @@
# Maintainer: Michael Kuc <michaelkuc6 at gmail dot com>
# Contributor: Anthony G. Basile <blueness at gentoo dot org>
pkgname=ccalc-git
pkgver=2.12.7.2
pkgrel=1
epoch=
pkgdesc="C-style arbitrary precision calculator"
arch=('x86_64')
url="https://github.com/lcn2/calc"
license=('LGPL')
groups=()
makedepends=()
checkdepends=()
optdepends=()
provides=('ccalc')
backup=()
options=()
changelog=
source=("ccalc::git+https://github.com/lcn2/calc.git"
"Makefile.patch")
noextract=()
sha256sums=("SKIP"
"3c4dc59e8fca6d1b152d90d762afc399ee9705a3ae915bc9eeaa60bcf8606d8c")
prepare() {
cd "$srcdir/ccalc/"
git apply ../Makefile.patch
}
build() {
cd "$srcdir/ccalc/"
make -j1 all
}
check() {
cd "$srcdir/ccalc/"
make check
}
package() {
cd "$srcdir/ccalc/"
make T="${pkgdir}/" install
}