-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
51 lines (40 loc) · 1.4 KB
/
PKGBUILD
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
# Contributor abcd567
# Maintainer abcd567
# Source-Code By: Jasper jvde-github
url="https://github.com/jvde-github/AIS-catcher"
license=('GPL')
pkgdesc="AIS-catcher: A multi-platform AIS Receiver, by Jasper jvde-github"
pkgname=aiscatcher
pkgver=latest
pkgrel=0
arch=('aarch64' 'arm64')
source=('aiscatcher::git+https://github.com/jvde-github/AIS-catcher.git'
'aiscatcher.service'
'aiscatcher.conf'
'start-ais.sh'
'rtl-sdr.rules')
cksums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
install=aiscatcher.install
makedepends=('git' 'make' 'gcc' 'cmake' 'pkg-config' 'rtl-sdr' 'openssl')
depends=('rtl-sdr' 'openssl')
pkgver() {
cd ${srcdir}/aiscatcher
git describe --tags | sed 's/-/./' | sed 's/-.*//'
}
backup=(usr/share/aiscatcher/aiscatcher.conf)
build(){
cd aiscatcher
mkdir -p build
cd build
cmake ..
make
}
package(){
install -Dm755 ${srcdir}/aiscatcher/build/AIS-catcher ${pkgdir}/usr/local/bin/AIS-catcher
install -Dm755 ${srcdir}/start-ais.sh ${pkgdir}/usr/share/aiscatcher/start-ais.sh
install -Dm644 ${srcdir}/aiscatcher.service ${pkgdir}/usr/lib/systemd/system/aiscatcher.service
install -Dm644 ${srcdir}/aiscatcher.conf ${pkgdir}/usr/share/aiscatcher/aiscatcher.conf
install -dm644 ${pkgdir}/usr/share/aiscatcher/plugins
cp ${srcdir}/aiscatcher/plugins/* ${pkgdir}/usr/share/aiscatcher/plugins/
install -Dm644 ${srcdir}/rtl-sdr.rules ${pkgdir}/etc/udev/rules.d/ais-rtl-sdr.rules
}