Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging
/ Packages / unoconv
Commits:
409c4de8 by Jan Alexander Steffens (heftig) at 2025-01-03T09:18:13+01:00
0.9.0-1: Use tag pinning, clean up
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,16 +1,20 @@
pkgbase = unoconv
pkgdesc = Libreoffice-based document converter
- pkgver = 0.9
- pkgrel = 3
- url = http://dag.wiee.rs/home-made/unoconv
+ pkgver = 0.9.0
+ pkgrel = 1
+ url = https://github.com/unoconv/unoconv
arch = any
- license = GPL2
+ license = GPL-2.0-only
makedepends = asciidoc
makedepends = git
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
+ makedepends = xmlto
+ depends = libreoffice
depends = python
depends = python-setuptools
- depends = libreoffice
- source =
git+https://github.com/dagwieers/unoconv#commit=4cf0e54460bf27db8153951a78b3860d4f810fea
- sha256sums = SKIP
+ source = git+https://github.com/unoconv/unoconv#tag=0.9.0
+ b2sums =
02251042d3e7e79f50f6bb8b22178a070afb2e6c81b5e9d6f9553e2ff505b3b124c891cd227238703f550e4f321af89de069725ab73bd643fe6c5e6c9cad5948
pkgname = unoconv
=====================================
PKGBUILD
=====================================
@@ -3,24 +3,43 @@
# Contributor: SeeSchloss <[email protected]>
pkgname=unoconv
-pkgver=0.9
-pkgrel=3
+pkgver=0.9.0
+pkgrel=1
pkgdesc="Libreoffice-based document converter"
-url="http://dag.wiee.rs/home-made/unoconv"
-depends=(python python-setuptools libreoffice)
-makedepends=(asciidoc git)
+url="https://github.com/unoconv/unoconv"
+license=(GPL-2.0-only)
+depends=(
+ libreoffice
+ python
+ python-setuptools
+)
+makedepends=(
+ asciidoc
+ git
+ python-build
+ python-installer
+ python-wheel
+ xmlto
+)
arch=(any)
-license=(GPL2)
-_commit=4cf0e54460bf27db8153951a78b3860d4f810fea # tags/0.9
-source=("git+https://github.com/dagwieers/unoconv#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+$url#tag=$pkgver")
+b2sums=('02251042d3e7e79f50f6bb8b22178a070afb2e6c81b5e9d6f9553e2ff505b3b124c891cd227238703f550e4f321af89de069725ab73bd643fe6c5e6c9cad5948')
-pkgver() {
- cd $pkgname
- git describe --tags | sed 's/-/+/g'
+prepare() {
+ cd unoconv
+ rm doc/unoconv.1 # rebuild
+}
+
+build() {
+ cd unoconv
+ python -m build --wheel --no-isolation
+ make -C doc man
}
package() {
- cd $pkgname
- make DESTDIR="$pkgdir" install
+ cd unoconv
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ make -C doc install DESTDIR="$pkgdir"
}
+
+# vim:set sw=2 sts=-1 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/unoconv/-/commit/409c4de851ae7323ee6a45078ff297bb7c1b3b76
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/unoconv/-/commit/409c4de851ae7323ee6a45078ff297bb7c1b3b76
You're receiving this email because of your account on gitlab.archlinux.org.