diff options
author | Jordan Cannon | 2022-05-11 06:18:07 -0500 |
---|---|---|
committer | Jordan Cannon | 2022-05-11 06:18:07 -0500 |
commit | e9b21ee0ada41ce85548adceab6a72940bacdd8f (patch) | |
tree | b06a426aa2b9a910c2abcb6ce6419fa3e8b88537 /PKGBUILD | |
download | aur-e9b21ee0ada41ce85548adceab6a72940bacdd8f.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..926a6b540873 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Jordan Cannon <LiteracyFanatic@gmail.com> +pkgname=manga-sharp +pkgver=0.1.0 +pkgrel=1 +pkgdesc='CLI manga downloader and reader with lightweight web interface' +arch=(x86_64) +url='https://github.com/LiteracyFanatic/manga-sharp' +license=('MIT') +depends=(dotnet-runtime aspnet-runtime) +options=('!strip') +makedepends=(dotnet-sdk npm git) +source=("git+https://github.com/LiteracyFanatic/manga-sharp#tag=v$pkgver") +sha256sums=(SKIP) + +prepare() { + cd "$srcdir/$pkgname" + npm install + mkdir -p src/CLI/wwwroot/assets + cp node_modules/bulma/css/bulma.min.css src/CLI/wwwroot/assets/ +} + +build() { + cd "$srcdir/$pkgname" + dotnet publish -c Release -r linux-x64 --no-self-contained -o dist src/CLI/ +} + +package() { + cd "$srcdir/$pkgname" + install -Dm 755 dist/manga "$pkgdir/usr/bin/manga" + install -Dm 544 manga-completion "$pkgdir/usr/share/bash-completion/completions/manga" +} |