diff options
author | daniel-j | 2018-03-14 16:18:26 +0100 |
---|---|---|
committer | daniel-j | 2018-03-14 16:18:26 +0100 |
commit | f37c418aa0f32287b715a432d968ed63ba735903 (patch) | |
tree | 0b5183ef2ef34856515770631bfc3647e27fc8c8 | |
download | aur-f37c418aa0f32287b715a432d968ed63ba735903.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rwxr-xr-x | PKGBUILD | 26 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b4404a4d0a30 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = fimfic2epub + pkgdesc = Tool to generate improved EPUB ebooks from Fimfiction stories + pkgver = 1.7.16 + pkgrel = 1 + url = https://github.com/daniel-j/fimfic2epub + arch = any + license = MIT + makedepends = npm + depends = nodejs + options = !strip + source = https://github.com/daniel-j/fimfic2epub/archive/v1.7.16.tar.gz + sha256sums = d54d1da674f91df54b0aae433cdc4cc4baa3a4fb6dd2d476cf0f4d6be056b1bd + +pkgname = fimfic2epub + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..eb286ebfbe67 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: djazz + +pkgname=fimfic2epub +pkgver=1.7.16 +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=('npm') +options=(!strip) +source=("https://github.com/daniel-j/fimfic2epub/archive/v${pkgver}.tar.gz") +sha256sums=( + 'd54d1da674f91df54b0aae433cdc4cc4baa3a4fb6dd2d476cf0f4d6be056b1bd' +) + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + npm install --user root --cache="${srcdir}/npm-cache" + npm install --user root --cache="${srcdir}/npm-cache" --prefix "${srcdir}" removeNPMAbsolutePaths + "${srcdir}/node_modules/.bin/removeNPMAbsolutePaths" . 2>&1 + npm run dev webpack -- --standalone + install -D "bin/fimfic2epub-static" "${pkgdir}/usr/bin/${pkgname}" + install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |