blob: d41133ca048b5bd9b3d2f5fdc8ab2b393f82d922 (
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
|
# Maintainer: spsf64 <spsf64 at g m a i l .com>
# Maintainer: thomasqueirozb <thomasqueirozb at g m a i l .com>
pkgname=finanx-12c
pkgver=0.2.8
pkgrel=1
pkgdesc='Free software that mimics the HP-12C financial calculator. NOT RECOMMENDED for professional calculations.'
arch=('x86_64')
license=('GPL3')
url="https://sourceforge.net/projects/finanx/"
depends=('java-runtime<=11')
# The icon is provided by the Finanx-12c project
source=("$pkgname"
"$pkgname.desktop"
"https://sourceforge.net/projects/finanx/files/$pkgname-$pkgver/$pkgname-$pkgver.zip")
# "https://sourceforge.net/projects/finanx/files/finanx-12c-0.2.8/finanx-12c-0.2.8.zip")
sha256sums=('280da0e82869265fefba74cf34811ff740e0b1de6f67dab8861d1bf76ab01ec6'
'2043a82d1ecc6e3942a4cb34778e5bda59cca9800803f51a830d4ea48b7a30ba'
'934bf5dac28914220315bc90a9befb5506a77bd97faab0f880ffbbced260c1ab')
prepare() {
# cd "$srcdir/finanx-12c-0.2.8/"
cd "$srcdir/$pkgname-$pkgver/"
mv COPYING.txt ../copying.txt
mv finanx.jar ../finanx-12c.jar
mv icon.png ../finanx-12c.png
# mv LEIA-ME.pdf ../leia-me.pdf
mv README.pdf ../readme.pdf
# rm finanx.bat
# rm finanx.sh
}
package() {
cd "$srcdir"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 $pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
install -Dm644 $pkgname.jar "$pkgdir"/usr/share/java/$pkgname/$pkgname.jar
install -Dm644 copying.txt "$pkgdir/usr/share/licenses/$pkgname/copying.txt"
install -Dm644 readme.pdf "$pkgdir/usr/share/licenses/$pkgname/readme.pdf"
}
|