blob: 5c38b774ad41b500a6bc7008232ff8ed7235b900 (
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
|
# Maintainer: João Freitas <joaj.freitas@gmail.com>
pkgname=numbat-bin
_pkgname=numbat
pkgver=1.14.0
pkgrel=1
pkgdesc="A statically typed programming language for scientific computations with first class support for physical dimensions and units"
arch=('x86_64')
url="https://github.com/sharkdp/numbat"
license=('MIT' 'Apache-2.0')
depends=()
makedepends=()
provides=('numbat')
conflicts=('numbat')
source=("$_pkgname-$pkgver-x86_64-unknown-linux-gnu.tar.gz::https://github.com/sharkdp/$_pkgname/releases/download/v$pkgver/$_pkgname-v$pkgver-x86_64-unknown-linux-gnu.tar.gz")
sha256sums=(
'66e6e68e2788598e5c86900757c3c625d3d155d6a7b4871535c658903410922a'
)
package() {
cd "$_pkgname-v$pkgver-x86_64-unknown-linux-gnu"
install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE-MIT"
install -Dm644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE-APACHE"
mkdir "$pkgdir/usr/share/$_pkgname"
cp -r "modules" "$pkgdir/usr/share/$_pkgname/modules/"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/README.md"
install -Dm644 "assets/numbat.desktop" "$pkgdir/usr/share/applications/numbat.desktop"
install -Dm644 "assets/numbat.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/numbat.svg"
for icon in $(ls assets/numbat-*x*png)
do
filename_without_prefix=${icon#*-}
icon_size=${filename_without_prefix%.*}
install -Dm644 "$icon" "$pkgdir/usr/share/icons/hicolor/$icon_size/apps/numbat.png"
done
}
|