blob: 4aee3b22380d4236cb00607e0197cb3c954a3e0b (
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
|
# Maintainer: Christopher P. Fair <christopherpfair@comcast.net>
pkgname=lacap
longname=latin-catholic-prayers
pkgver=1.0.5
pkgrel=1
pkgdesc="Memorize Catholic prayers in Latin."
arch=('i686' 'x86_64')
url="https://gitlab.com/chrisfair/latin-catholic-prayers"
license=('GPL3')
makedepends=('npm')
depends=('gtk3' 'webkit2gtk')
provides=('lacap')
source=("https://gitlab.com/chrisfair/latin-catholic-prayers/-/archive/v${pkgver}/latin-catholic-prayers-v${pkgver}.tar.gz")
sha256sums=('2fd2da7eacb9f67c21a08dc0894b2558907f1a7d65bafa52796b8e4a0d97bd75')
build() {
export GOPATH="$srcdir"/gopath
export GOBIN="$srcdir"/gopath/bin
export PATH=$GOBIN:$PATH
cd "$srcdir/$longname-v$pkgver"
go get -u github.com/wailsapp/wails/cmd/wails >/dev/null 2>&1
wails build -f >/dev/null 2>&1
}
package() {
install -Dm755 $srcdir/$longname-v$pkgver/build/$longname $pkgdir/opt/chrisfair/$longname/$pkgname
rsync -av --no-o --no-g $srcdir/$longname-v$pkgver/Prayers $pkgdir/opt/chrisfair/$longname/ >/dev/null 2>&1
rsync -av --no-o --no-g $srcdir/$longname-v$pkgver/Sounds $pkgdir/opt/chrisfair/$longname/ >/dev/null 2>&1
rsync -av --no-o --no-g $srcdir/$longname-v$pkgver/HelpFiles $pkgdir/opt/chrisfair/$longname/ >/dev/null 2>&1
mkdir -p $pkgdir/usr/bin/
cd $pkgdir/usr/bin
ln -s /opt/chrisfair/$longname/$pkgname
chmod -R uag+rw $srcdir
}
|