blob: 42e41c0f2bb27fec625d3e0f5e9b8ea8962de4c0 (
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
52
|
# Maintainer: oldherl <oldherl@gmail.com>
pkgname=skychart
_pkgver=4.3-4867
pkgver=${_pkgver/-/.}
pkgrel=4
pkgdesc="Free software to draw sky charts, also known as Cartes du Ciel. Beta version"
arch=('x86_64')
license=('GPL-2.0-or-later')
depends=('qt5-base' 'xplanet' 'libpasastro' 'qt5pas')
makedepends=('fpc' 'lazarus-qt5' 'wget')
optdepends=(
"xplanet: for displaying textures on planets"
)
url="http://www.ap-i.net/skychart/start"
# Using my own copy of source code because upstream deletes beta tarballs regularly.
source=(
"https://build.archlinuxcn.org/~oldherl/files/skychart/skychart-${_pkgver}-src.tar.xz"
)
sha256sums=('914a1191d6829f25b304889d8f1533290d6b3d986ba8830680c939c53d622a8b')
prepare() {
cd "skychart-$_pkgver-src"
# Do not strip binaries when installing. Let makepkg do so.
# makepkg will produce a -debug package of the debug symbols.
sed -i 's/-m 755 -s/-m 755/g' install.sh
}
build() {
cd "skychart-$_pkgver-src"
fpc="/usr/lib/fpc/""`fpc -iV`""/units/x86_64-linux/"
echo fpc=$fpc
# Keep debug symbols and do not strip
export fpcopts="-g -gl -O3 -CX -XX"
echo fpcopts="$fpcopts"
echo ./configure fpc="$fpc" lazarus=/usr/lib/lazarus prefix="$pkgdir/usr" target=x86_64-linux
./configure fpc="$fpc" lazarus=/usr/lib/lazarus prefix="$pkgdir/usr" target=x86_64-linux
make CPU_TARGET=x86_64 OS_TARGET=linux clean
make CPU_TARGET=x86_64 OS_TARGET=linux -j 1
}
package() {
cd "skychart-$_pkgver-src"
echo pkgdir $pkgdir
mkdir -p "$pkgdir/usr"
make install
make install_data
make install_doc
make install_nonfree
}
|