diff --git a/calc/Makefile.patch b/calc/Makefile.patch new file mode 100644 index 0000000..4f6f410 --- /dev/null +++ b/calc/Makefile.patch @@ -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 # diff --git a/calc/PKGBUILD b/calc/PKGBUILD new file mode 100644 index 0000000..6c25bb7 --- /dev/null +++ b/calc/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Michael Kuc +# Contributor: Anthony G. Basile + +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 +}