Date: Tuesday, January 31, 2023 @ 20:12:00
  Author: felixonmars
Revision: 1391524

upgpkg: python-ini2toml 0.11.3-2

Modified:
  python-ini2toml/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:11:23 UTC (rev 1391523)
+++ PKGBUILD    2023-01-31 20:12:00 UTC (rev 1391524)
@@ -2,7 +2,8 @@
 
 pkgname=python-ini2toml
 pkgver=0.11.3
-pkgrel=1
+_commit=aeec167df452289c38da07a3dce520d1d1749230
+pkgrel=2
 pkgdesc="Automatically conversion of .ini/.cfg files to TOML equivalents"
 url="https://github.com/abravalheri/ini2toml";
 license=('MPL')
@@ -9,20 +10,18 @@
 arch=('any')
 # The default installation is broken. Adding [full] flavor dependencies here.
 depends=('python-configupdater' 'python-packaging' 'python-tomlkit')
-makedepends=('python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm')
 checkdepends=('python-pytest-cov' 'python-tomli-w' 'python-validate-pyproject')
-source=("https://github.com/abravalheri/ini2toml/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('f1331bc47a2d4593788de9d8b1fdbc2231ac22524aaf3a83695c810e0dcbdce4bb46c48363ea150a583e4b24264d7a25f85ece737b31fa0ec0b8a6a2e098a9d5')
+source=("git+https://github.com/abravalheri/ini2toml.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd ini2toml-$pkgver
+  cd ini2toml
   python setup.py build
 }
 
 check() {
-  cd ini2toml-$pkgver
+  cd ini2toml
   python setup.py install --root="$PWD/tmp_install" --optimize=1
   local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
   # TODO
@@ -30,6 +29,6 @@
 }
 
 package() {
-  cd ini2toml-$pkgver
+  cd ini2toml
   python setup.py install --root="$pkgdir" --optimize=1
 }

Reply via email to