makedeb
A user-friendly, customizable image viewer specifically designed to handle comic books
Click here to go back to the commit logs for mcomix.
Hash: 3a11c96b4f64aaa0ae58431e543579b70c564e8f
Message: 3.0.0
diff --git a/.SRCINFO b/.SRCINFO
index 5243b33..7f368fb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = mcomix
pkgbase = mcomix
pkgdesc = A user-friendly, customizable image viewer specifically designed to handle comic books
pkgrel = 0
-pkgver = 2.3.0
+pkgver = 3.0.0
url = https://sourceforge.net/p/mcomix/wiki/Home/
arch = all
depends = python3
@@ -13,7 +13,9 @@ depends = python3-gi
depends = python3-cairo
depends = python3-gi-cairo
license = GPL2
-makedepends = python3-setuptools
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
optdepends = libunrar5: for rar compressed comics
optdepends = p7zip: for 7z compressed comics
optdepends = unrar: for rar compressed comics
@@ -21,9 +23,11 @@ optdepends = unzip: for zip compressed comics
optdepends = lhasa: for lha compressed comics
optdepends = mupdf-tools: for PDF comics
optdepends = python3-chardet: character encoding detection
-source = https://downloads.sourceforge.net/project/mcomix/MComix-2.3.0/mcomix-2.3.0.tar.gz
-b2sums = 6e7fc2fd4d13ca75fcab45b7611016f59e9d0a2bcb13bdfda17b33fd15d054abe25f360250de7ec5d82b1752723d8a915947c923352bf59b91affaa942158e07
-makedepends = python3-setuptools
+source = https://downloads.sourceforge.net/project/mcomix/MComix-3.0.0/mcomix-3.0.0.tar.gz
+b2sums = 48c4566cc09c99e4cea76e487753c43fc36ed9e06c26dd1cbcf0e16b1ded4cf438cbcd2d423bdff393468a368d226a499b70967b9fc094d526bb4637c5d3b24b
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
optdepends = libunrar5: for rar compressed comics
optdepends = p7zip: for 7z compressed comics
optdepends = unrar: for rar compressed comics
diff --git a/PKGBUILD b/PKGBUILD
index 8196ab8..ec4af0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
# Contributor: schuay (AUR) <jakob.gruber@gmail.com>
# Contributor: Ray Powell (AUR) <ray_al@xphoniexx.net>
pkgname=mcomix
-pkgver=2.3.0
+pkgver=3.0.0
pkgrel=0
pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books"
arch=('all')
url="https://sourceforge.net/p/mcomix/wiki/Home/"
license=('GPL2')
depends=('python3' 'gir1.2-gtk-3.0' 'python3-pil' 'python3-gi' 'python3-cairo' 'python3-gi-cairo')
-makedepends=('python3-setuptools')
+makedepends=('python3-build' 'python3-installer' 'python3-wheel')
optdepends=('libunrar5: for rar compressed comics'
'p7zip: for 7z compressed comics'
'unrar: for rar compressed comics'
@@ -18,20 +18,24 @@ optdepends=('libunrar5: for rar compressed comics'
'mupdf-tools: for PDF comics'
'python3-chardet: character encoding detection')
source=("https://downloads.sourceforge.net/project/${pkgname}/MComix-${pkgver}/${pkgname}-${pkgver}.tar.gz")
-b2sums=('6e7fc2fd4d13ca75fcab45b7611016f59e9d0a2bcb13bdfda17b33fd15d054abe25f360250de7ec5d82b1752723d8a915947c923352bf59b91affaa942158e07')
+b2sums=('48c4566cc09c99e4cea76e487753c43fc36ed9e06c26dd1cbcf0e16b1ded4cf438cbcd2d423bdff393468a368d226a499b70967b9fc094d526bb4637c5d3b24b')
build(){
cd "${pkgname}-${pkgver}"
- python3 setup.py build
+ python3 -m build --no-isolation --wheel
}
package() {
cd "${pkgname}-${pkgver}"
- python3 -m setup install --root "$pkgdir" --optimize=1 --skip-build --install-layout deb
+ python3 -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build
+ # Manual remove local
+ mv "$pkgdir/usr/local/"* "$pkgdir/usr/"
+ rmdir "$pkgdir/usr/local"
+ # application meta files are no longer copied automatically by the installation process
+ cp -a share "$pkgdir/usr"
#doc
- install -Dm644 "README" "$pkgdir/usr/share/doc/$pkgname/readme"
- install -Dm644 "ChangeLog" "$pkgdir/usr/share/doc/$pkgname/changelog"
+ install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
+ install -Dm644 "ChangeLog.md" "$pkgdir/usr/share/doc/$pkgname/changelog"
ln -s /usr/share/common-licenses/GPL-2 "$pkgdir/usr/share/doc/$pkgname/"
-
gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
}