blob: 19fa8cf15065e48194f17425f88e55bdf4358d68 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=free42
pkgver=2.0.22
pkgrel=2
pkgdesc="Scientific programmable calculator"
url="https://thomasokken.com/free42/"
arch="all"
options="!check" # No test suite.
license="GPL-2.0-only AND Public-Domain"
depends=""
makedepends="alsa-lib-dev gtk+2.0-dev libx11-dev libxmu-dev"
subpackages=""
source="https://distfiles.adelielinux.org/source/free42-nologo-$pkgver.tgz
free42.desktop
libx11.patch
patch.patch
unsigned-char.patch
"
builddir="$srcdir/free42-nologo-$pkgver"
build() {
cd "$builddir"/gtk
local SAVE_CFLAGS
SAVE_CFLAGS=$CFLAGS
unset CFLAGS
CC="gcc -D_WCHAR_T" ./build-intel-lib.sh
CFLAGS=$SAVE_CFLAGS
make BCD_MATH=1 AUDIO_ALSA=1
}
package() {
install -D -m755 gtk/free42dec "$pkgdir"/usr/bin/free42dec
install -D -m644 "$srcdir"/free42.desktop \
"$pkgdir"/usr/share/applications/free42.desktop
}
sha512sums="865e8cce86a882aba10e7e756308e195a6675f0b6db4b881e7b7df67de95f5169ca801005e25dd0e61a70a5a0cd6a374b0cf58003251cdc9dc526a2506e18e1d free42-nologo-2.0.22.tgz
f52700d234719f4ee7cdd369fc5f28ade190ff77ed1a824cd2cdaeef62419700de3d85a28fd6ae378f904e018813dc4145ca4cc9f2669fdf50f3e13baa7ec634 free42.desktop
470eb88936c65a053860af94955bf979973bad48c4b1f593598818f8ff0c39c4869613a05ad0e82b7a3fc6ce19fa7b8642a38e726d4a48e3fe63a9cbac8a45d6 libx11.patch
a1ee3f1b6e524d64c7f599072ac5a0e3cae17c5b45cb89a9cc2b5eaa2b2f7337ad92bae2f8566ee01d50772231a3fe68d26e241c8d8a54375a9edbd7160acccc patch.patch
2e2e6c5a00de96f2ca1c61a0039a945bf0416c889b9131abf89c6eca4d8816ff0144c32634ac7c7b112fc1bd8cd6d816f22f2aed31bde59b96a79b9588235a02 unsigned-char.patch"
|