blob: 7746491cae80bf0627295a31286f75c22c59d2fd (
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
|
# Maintainer: Jordan Parviainen jordan.parviainen.stud@pw.edu.pl
pkgname='projector-git'
pkgrel=1
pkgver=1.0.0
arch=('x86_64')
pkgdesc='Screen sharing web application, port of https://github.com/adamyordan/laplace'
makedepends=('go' 'git')
source=('git+https://github.com/jordus100/projector-git')
sha256sums=('SKIP')
_static_files="usr/share/proj"
_exe_files="usr/bin"
_scripts="usr/local/bin"
_service_files="usr/lib/systemd/system"
_src="$pkgname/src"
build() {
cd "$srcdir/$_src"
go build -o laplace -ldflags "-X main.staticDir=/$_static_files/files" main.go
}
package() {
cd "$srcdir/$_src"
install -D "laplace" "$pkgdir/$_exe_files/laplace"
cd "$srcdir/$pkgname"
install -D -m 644 "projector.service" "$pkgdir/$_service_files/projector.service"
cd "$srcdir/$pkgname/files"
install -dD "files" "$pkgdir/$_static_files"
cp -r . "$pkgdir/$_static_files/files"
}
|