initial commit
This commit is contained in:
commit
8c6abe6ca1
20
.SRCINFO
Normal file
20
.SRCINFO
Normal file
@ -0,0 +1,20 @@
|
||||
pkgbase = python-jimaku-dl
|
||||
pkgdesc = A Python package to download Japanese subtitles for anime from Jimaku.cc
|
||||
pkgver = 0.1.0
|
||||
pkgrel = 1
|
||||
url = https://gitea.suda.codes/sudacode/jimaku-dl
|
||||
arch = any
|
||||
license = GPL3
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-wheel
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = git
|
||||
depends = python
|
||||
depends = python-pip
|
||||
depends = fzf
|
||||
optdepends = mpv: for playback functionality
|
||||
source = git+https://gitea.suda.codes/sudacode/jimaku-dl.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = python-jimaku-dl
|
46
PKGBUILD
Normal file
46
PKGBUILD
Normal file
@ -0,0 +1,46 @@
|
||||
# Maintainer: sudacode <suda@sudacode.com>
|
||||
|
||||
pkgname=python-jimaku-dl
|
||||
_pkgname=jimaku-dl
|
||||
# We'll determine the version from git, so this is just a placeholder
|
||||
pkgver=0.1.1.r1.c7cab59
|
||||
pkgrel=1
|
||||
pkgdesc="A Python package to download Japanese subtitles for anime from Jimaku.cc"
|
||||
arch=('any')
|
||||
url="https://gitea.suda.codes/sudacode/jimaku-dl"
|
||||
license=('GPL3')
|
||||
depends=('python' 'python-pip' 'fzf')
|
||||
optdepends=('mpv: for playback functionality')
|
||||
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer' 'git')
|
||||
|
||||
# Option 1: Use git directly (more reliable)
|
||||
source=("git+https://gitea.suda.codes/sudacode/${_pkgname}.git")
|
||||
# Option 2: Try alternative archive URL format (uncomment if Option 1 fails)
|
||||
# source=("$_pkgname-$pkgver.tar.gz::https://gitea.suda.codes/sudacode/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
# Option 3: Try zip format instead (uncomment if Options 1 and 2 fail)
|
||||
# source=("$_pkgname-$pkgver.zip::https://gitea.suda.codes/sudacode/${_pkgname}/archive/v${pkgver}.zip")
|
||||
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgname"
|
||||
git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_pkgname" # For git source
|
||||
# cd "$_pkgname-$pkgver" # Uncomment this for archive source
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_pkgname" # For git source
|
||||
# cd "$_pkgname-$pkgver" # Uncomment this for archive source
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
# Install license file
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
# Install documentation
|
||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user