blob: 5248f1b13cb2bef67ec6fcd775d80df72be6abf6 (
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
|
# Maintainer: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
pkgname=astroterm
pkgver=1.0.6
pkgrel=1
pkgdesc='A planetarium for your terminal'
arch=('x86_64')
url="https://github.com/da-luce/$pkgname"
license=('MIT')
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"$pkgname-BSC5-$pkgver::https://web.archive.org/web/20231007085824if_/http://tdc-www.harvard.edu/catalogs/BSC5"
)
sha256sums=('144ad050a4ca3840d321bb0e454cefbfee78f2b85a2e5add154ef4c49e984d86'
'e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340')
makedepends=('gcc' 'meson' 'ninja' 'xxd')
depends=('glibc' 'ncurses' 'argtable')
prepare() {
cd "$pkgname-$pkgver"
mkdir -p data
cp "$srcdir/$pkgname-BSC5-$pkgver" data/bsc5
meson setup build
}
build() {
cd "$pkgname-$pkgver"
meson compile -C build
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "build/$pkgname" -t "$pkgdir/usr/bin"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
# vim: ts=2 sw=2 et:
|