Package Details: python-pysubs2 1.6.1-1

Git Clone URL: https://aur.archlinux.org/python-pysubs2.git (read-only, click to copy)
Package Base: python-pysubs2
Description: A Python library for editing subtitle files
Upstream URL: https://pypi.org/project/pysubs2
Licenses: MIT
Submitter: b6b
Maintainer: tyrannis.hawk
Last Packager: tyrannis.hawk
Votes: 7
Popularity: 0.000528
First Submitted: 2020-03-26 01:15 (UTC)
Last Updated: 2023-04-07 07:17 (UTC)

Latest Comments

tyrannis.hawk commented on 2021-06-19 17:26 (UTC)

@miguelbernadi Fixed. Thanks. I added $pkgver after testing the build, which is silly on my part.

miguelbernadi commented on 2021-06-19 15:52 (UTC)

The PKGBUILD is broken because it uses single quotes instead of double quotess for the download, so the version does not get interpolated. This fixes it:

diff --git a/PKGBUILD b/PKGBUILD
index 6fb4ceb..7c45700 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ url=https://pypi.org/project/pysubs2
 license=(MIT)
 depends=(python)
 makedepends=(python-setuptools)
-source=('https://files.pythonhosted.org/packages/0c/5d/ea6cb4fda284b18a034008e08650e68885cd5fca90dc17f45886ce15320d/pysubs2-$pkgver.tar.gz')
+source=("https://files.pythonhosted.org/packages/0c/5d/ea6cb4fda284b18a034008e08650e68885cd5fca90dc17f45886ce15320d/pysubs2-$pkgver.tar.gz")
 sha256sums=('6bac5307455eb1f63e1c1d696a4c4d78615765ecada83c323e28507e9bd9d887')

 build() {

tyrannis.hawk commented on 2021-03-21 16:21 (UTC) (edited on 2021-03-21 16:24 (UTC) by tyrannis.hawk)

... and this is the PKGBUILD for the current version (1.1.0).

# Maintainer: b6b <b6bb at pm dot me>

pkgname=python-pysubs2
_name=${pkgname#python-}
pkgver=1.1.0
pkgrel=1
pkgdesc='A Python library for editing subtitle files'
arch=(any)
url=https://pypi.org/project/pysubs2
license=(MIT)
depends=(python)
makedepends=(python-setuptools)
source=('https://files.pythonhosted.org/packages/9f/ec  /67901009615aa43fdaa17a1e5e795d91db85057136e7776403155e0acef1/pysubs2-1.1.0.tar.gz')
sha256sums=('d64e3e8260519d4889bad397e78f0c93bd7ed6b59102e657612166e320da167c')

build() {
  cd "${srcdir}/pysubs2-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/pysubs2-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}

Shasta commented on 2020-11-26 03:14 (UTC)

Here's a patch to update to 1.0.0, and make updating the PyPi url easier:

diff --git a/PKGBUILD b/PKGBUILD
index 3f97484..56b2683 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
 # Maintainer: b6b <b6bb at pm dot me>

 pkgname=python-pysubs2
-pkgver=0.2.4
+_name=${pkgname#python-}
+pkgver=1.0.0
 pkgrel=1
 pkgdesc='A Python library for editing subtitle files'
 arch=(any)
@@ -9,8 +10,8 @@ url=https://pypi.org/project/pysubs2
 license=(MIT)
 depends=(python)
 makedepends=(python-setuptools)
-source=("https://files.pythonhosted.org/packages/8a/83/5ebaf5a1d6f04ae21c2bdc16dcdba4a950b1c0b10f0fe83e71f9c5738e33/pysubs2-$pkgver.tar.gz")
-sha256sums=(07f9bb5da0efe8238b88c9ee35cc42ad8c6a3ffc2e4bf8f3bff6d463d02a4b6f)
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('d3bebe7793068f2668456c0345ca2ed03ac2542688cdbe20c8bbf2967faf08c3')

 build() {
   cd "${srcdir}/pysubs2-${pkgver}"