makedeb
ueberzug is an python script which aims to replace w3mimgdisplay
Click here to go back to the commit logs for ueberzug-git.
Hash: e0dc1faecafe0214ce1c97526ea92ebb4af9cc4c
Message: Initial mpr release
diff --git a/.SRCINFO b/.SRCINFO
index b0f8298..3a13001 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,27 @@
-pkgbase = python-ueberzug-git
- pkgdesc = ueberzug is an python script which aims to replace w3mimgdisplay
- pkgver = 18.1.8.07a7998
- pkgrel = 1
- url = https://github.com/seebye/ueberzug
- arch = any
- license = GPL3
- makedepends = git
- makedepends = python-setuptools
- depends = libxext
- depends = libxres
- depends = python-pillow
- depends = python
- depends = python-docopt
- depends = python-attrs
- provides = python-ueberzug=18.1.8.07a7998
- conflicts = python-ueberzug
- source = git+https://github.com/seebye/ueberzug.git#branch=master
- md5sums = SKIP
-
-pkgname = python-ueberzug-git
-
+generated-by = makedeb
+pkgname = ueberzug-git
+pkgbase = ueberzug-git
+pkgdesc = ueberzug is an python script which aims to replace w3mimgdisplay
+pkgrel = 1
+pkgver = 18.2.0.r0.gf4adcb4
+url = https://github.com/ueber-devel/ueberzug
+arch = amd64
+conflicts = ueberzug
+depends = libxext6
+depends = libxres1
+depends = python3-pil
+depends = python3
+depends = python3-docopt
+depends = python3-attr
+license = GPL3
+makedepends = git
+makedepends = python3-setuptools
+makedepends = libxext-dev
+makedepends = libxres-dev
+provides = ueberzug=18.2.0.r0.gf4adcb4
+source = git+https://github.com/ueber-devel/ueberzug
+b2sums = SKIP
+makedepends = git
+makedepends = python3-setuptools
+makedepends = libxext-dev
+makedepends = libxres-dev
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..049e59a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+ueberzug*
diff --git a/PKGBUILD b/PKGBUILD
index f40f743..8e6d9e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,35 @@
-# Maintainer: mehalter <micah at mehalter.com>
-
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: mehalter <micah at mehalter.com>
_pkgname=ueberzug
-pkgname=python-${_pkgname}-git
-pkgver=18.1.8.07a7998
+pkgname=${_pkgname}-git
+pkgver=18.2.0.r0.gf4adcb4
pkgrel=1
pkgdesc="ueberzug is an python script which aims to replace w3mimgdisplay"
-arch=('any')
-url="https://github.com/seebye/${_pkgname}"
+arch=('amd64')
+url="https://github.com/ueber-devel/${_pkgname}"
license=('GPL3')
-depends=("libxext" "libxres" "python-pillow" "python" "python-docopt" "python-attrs")
-makedepends=("git" "python-setuptools")
-source=("git+${url}.git#branch=master")
-md5sums=('SKIP')
-conflicts=("python-${_pkgname}")
-provides=("python-${_pkgname}=${pkgver}")
+depends=("libxext6" "libxres1" "python3-pil" "python3" "python3-docopt" "python3-attr")
+makedepends=("git" "python3-setuptools" "libxext-dev" "libxres-dev")
+source=("git+${url}")
+b2sums=('SKIP')
+conflicts=("${_pkgname}")
+provides=("${_pkgname}=${pkgver}")
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
+}
build() {
cd "$srcdir/$_pkgname"
- python setup.py build
+ python3 setup.py build
}
package() {
cd "$srcdir/$_pkgname"
- python setup.py install --prefix=/usr --root "${pkgdir}" || return 1
+ python3 setup.py install --prefix=/usr --root "${pkgdir}" --optimize=1 --skip-build --install-layout deb
+ # bug, remove sources
+ rm -Rf "$pkgdir/usr/lib/python3/dist-packages/ueberzug/X"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$_pkgname/license"
+ install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme"
}