summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4eae603e4e90cbc10482150a624ac6d847ba7a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Philipp Hochmann <phil.hochmann[ät]gmail[dot]com>
pkgname=ccalc
pkgver=1.5.6
pkgrel=0
epoch=
pkgdesc="Scientific calculator in which you can define new functions and constants"
packager="Philipp Hochmann"
arch=('x86_64')
url="https://github.com/PhilippHochmann/ccalc"
license=('GPL3')
groups=()
depends=('readline')
makedepends=('make' 'gcc')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz")
noextract=()
md5sums=('5973a768134b389e4c9d07b7923822b2')
validpgpkeys=()

prepare() {
	echo "Nothing to prepare"
}

build() {
	cd "$pkgname-$pkgver"
	make
	if [ $? -eq 0 ]; then
		mv bin/release/ccalc .
		make clean
	fi
}

check() {
	cd "$pkgname-$pkgver"
	if test ! -f ccalc; then
		echo "Compile error"
	fi
}

package() {
	mkdir -p $pkgdir/usr/bin/
	mv "$pkgname-$pkgver"/ccalc $pkgdir/usr/bin
}