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 | |
download | aur-e9b21ee0ada41ce85548adceab6a72940bacdd8f.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b6b51a68f629 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = manga-sharp + pkgdesc = CLI manga downloader and reader with lightweight web interface + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/LiteracyFanatic/manga-sharp + arch = x86_64 + license = MIT + makedepends = dotnet-sdk + makedepends = npm + makedepends = git + depends = dotnet-runtime + depends = aspnet-runtime + options = !strip + source = git+https://github.com/LiteracyFanatic/manga-sharp#tag=v0.1.0 + sha256sums = SKIP + +pkgname = manga-sharp diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..623d0e70ff3e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD + 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" +} |