diff options
author | Gustavo Vinícios de Souza | 2023-10-29 21:49:12 -0300 |
---|---|---|
committer | Gustavo Vinícios de Souza | 2023-10-29 21:49:12 -0300 |
commit | 3d5542308bbbd56c6e6db86c0acb22f0b47e84c2 (patch) | |
tree | 697a380f2b7a463c91a87c477fac5578397cb506 | |
download | aur-3d5542308bbbd56c6e6db86c0acb22f0b47e84c2.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5187408bea1e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = kemono-scraper-git + pkgdesc = A simple downloader to download media from kemono.party, development version. + pkgver = v0.0.21.r0.gb2c42e7 + pkgrel = 1 + url = https://github.com/elvis972602/Kemono-scraper + arch = x86_64 + license = MIT + makedepends = git + makedepends = go + provides = kemono-scraper + conflicts = kemono-scraper + source = kemono-scraper::git+https://github.com/elvis972602/kemono-scraper + sha256sums = SKIP + +pkgname = kemono-scraper-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b39f3b2a183f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.gitignore +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c07ae259e89f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Gustavo Vinícios de Souza <gnsfujiwara@disroot.org> + +pkgname=kemono-scraper-git +pkgver=v0.0.21.r0.gb2c42e7 +pkgrel=1 +pkgdesc='A simple downloader to download media from kemono.party, development version.' +arch=('x86_64') +url='https://github.com/elvis972602/Kemono-scraper' +license=('MIT') +makedepends=('git' 'go') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+https://github.com/elvis972602/${pkgname%-git}") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "%s" "$(git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" +} + +build() { + export GOPATH="${srcdir}" + export GOFLAGS="-buildmode=pie" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + cd "${srcdir}/${pkgname%-git}/main" + + go mod tidy + go build -o kemono-scraper +} + +package() { + cd "${srcdir}/${pkgname%-git}/main" + install -Dm755 kemono-scraper "${pkgdir}/usr/bin/kemono-scraper" +} |