Added C-like calculator lcn2/calc PKGBUILD.
This commit is contained in:
13
calc/Makefile.patch
Normal file
13
calc/Makefile.patch
Normal 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
44
calc/PKGBUILD
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user