blob: d9fb3a957389962511e9a1128afe0441238b0796 (
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: djazz
pkgname=fimfic2epub
pkgver=1.7.31
pkgrel=1
pkgdesc="Tool to generate improved EPUB ebooks from Fimfiction stories"
arch=('any')
url="https://github.com/daniel-j/fimfic2epub"
license=('MIT')
depends=('nodejs')
makedepends=('yarn')
options=(!strip)
source=("https://github.com/daniel-j/fimfic2epub/archive/v${pkgver}.tar.gz")
sha256sums=(
'a6945263ef7ce8d867e84e168f013850f24463a21726b554e9c3bfe874c9aa1f'
)
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
export YARN_CACHE_FOLDER="${srcdir}/yarn-cache"
echo "Installing dependencies..."
yarn install --non-interactive --no-lockfile --ignore-engines
echo "Building fimfic2epub..."
yarn run build webpack --standalone
install -D "bin/fimfic2epub-static" "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|