# Maintainer: Quint Guvernator # Contributor: Pipat Saengow pkgname=hp15c pkgver=4.0.0 pkgrel=2 pkgdesc="A simulator for the HP-15C programmable scientific RPN calculator" url="http://hp-15c.homepage.t-online.de/content_web.htm" arch=('any') license=('GPL3') depends=('tcl' 'tk') source=( "$pkgname-$pkgver.zip::https://drive.google.com/uc?export=download&id=1ewFXi6PPRsiPJESUq5A2Gp83NYSYVYKr" "01-package-path.patch" "hp15c_runner.sh" "hp15c.desktop" ) md5sums=('c90cc630d9e5bdf70912f8cd754cc2cc' '1cce408ad1c6c8458681690e96a02508' '33588adff38833aa1a2957457d4701b3' 'bab776009feb1db971b92649c839ff1f') prepare() { # patch location of files to match Arch standards patch -p1 -i "$srcdir/01-package-path.patch" # extract icons unzip icons/HP-15C-logo.zip -d $srcdir/icon_extract } package() { # docs mkdir -p "$pkgdir/usr/share/doc/" cp -r doc "$pkgdir/usr/share/doc/$pkgname" cp "Read Me & Release Notes.html" "$pkgdir/usr/share/doc/$pkgname/README.html" # dependencies of script mkdir -p "$pkgdir/usr/lib/$pkgname/" cp -r css icons lib msgs images -t "$pkgdir/usr/lib/$pkgname/" install -Dm644 HP-15C_Simulator_Font.ttf -t "$pkgdir/usr/share/fonts/" # runs script in proper directory cp HP-15C.tcl -t "$pkgdir/usr/lib/$pkgname/" install -D "$srcdir/hp15c_runner.sh" "$pkgdir/usr/bin/hp15c" # install desktop entry install -D hp15c.desktop "$pkgdir/usr/share/applications/hp15c.desktop" # install icon for i in 22 32 48 256 512 ; do install -D "icon_extract/HP-15C-logo-${i}x${i}.png" "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/hp15c.png" done } # vim:set ts=4 sw=4 ft=sh et: