diff options
author | alvarorichard | 2024-03-29 12:36:59 -0300 |
---|---|---|
committer | alvarorichard | 2024-03-29 12:36:59 -0300 |
commit | 97e67169365fcec96897b95e0a61864664ca808a (patch) | |
tree | 0a18da86281d17b0c88a4b717d69560e697bb1eb | |
download | aur-97e67169365fcec96897b95e0a61864664ca808a.tar.gz |
add goanime to AUR
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..32dadba81c83 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = goanime + pkgdesc = A command-line tool to browse, play, and download anime. + pkgver = 1.0.4 + pkgrel = 1 + url = https://github.com/alvarorichard/GoAnime + arch = x86_64 + license = MIT + makedepends = git + depends = go + depends = mpv + depends = yt-dlp + source = goanime-1.0.4.tar.gz::https://github.com/alvarorichard/GoAnime/archive/refs/tags/v1.0.4.tar.gz + sha256sums = SKIP + +pkgname = goanime diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a9d5eeb1d351 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +pkgname=goanime +pkgver=1.0.4 +pkgrel=1 +pkgdesc="A command-line tool to browse, play, and download anime." +arch=('x86_64') +url="https://github.com/alvarorichard/GoAnime" +license=('MIT') +depends=('go' 'mpv' 'yt-dlp') +makedepends=('git') +source=("$pkgname-$pkgver.tar.gz::https://github.com/alvarorichard/GoAnime/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('SKIP') + +prepare() { + cd "$srcdir/GoAnime-1.0.4" +} + +build() { + cd "$srcdir/GoAnime-1.0.4" + GOOS=linux GOARCH=amd64 go build -o goanime . +} + +package() { + cd "$srcdir/GoAnime-1.0.4" + install -Dm755 goanime "$pkgdir/usr/bin/goanime" +} |