blob: bdbe0d86d9b4d43c97b0af135665d65fb2e28c6b (
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: Frederick Gnodtke <fgnodtke at cronosx dot de>
pkgname=jolly
pkgver=0.2.0
pkgrel=1
pkgdesc="Static image gallery generator."
arch=('any')
url="https://gitlab.com/prior99/jolly"
license=('GPL3')
depends=(
'nodejs'
'zsh')
makedepends=('yarn')
source=("https://gitlab.com/prior99/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
options=('!strip')
sha256sums=('c7a639105656de72e9cee52b7e44878ebe0e4e0996f41892b1d31135f844715e')
_jsdir=${pkgname}-${pkgver}
build() {
cd $srcdir/$_jsdir
yarn install
yarn build
rm -rf node_modules
yarn install --production
cd ..
echo -e '#!/bin/sh\nexec node /usr/share/jolly "$@"' > jolly
chmod +x jolly
}
package() {
mkdir -p $pkgdir/usr/share/jolly
cp -r $srcdir/$_jsdir/dist/* $pkgdir/usr/share/jolly/
cp -r $srcdir/$_jsdir/node_modules $pkgdir/usr/share/jolly/
install -Dm755 $srcdir/jolly $pkgdir/usr/bin/jolly
}
|