<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=664&amp;type=atom" />
	<updated>2022-04-21T13:10:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=664</id>
		<entry>
			<title type="html"><![CDATA[Re: [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4394#p4394" />
			<content type="html"><![CDATA[<p>Cpulimit and lxsplit from the official Arch repos can also be easily installed using the Arch PKGBUILDs. I like David&#039;s Batch Processor GIMP plugin which I couldn&#039;t find anywhere so I created a PKGBUILD.</p><div class="codebox"><pre><code>pkgname=gimp-plugin-dbp
pkgver=1.1.9
_pkgver=1-1-9
pkgrel=1
pkgdesc=&quot;David&#039;s Batch Processor GIMP plugin&quot;
arch=(&#039;i686&#039; &#039;x86_64&#039;)
url=&quot;https://sourceforge.net/projects/gimpdbpplugin/&quot;
license=(&#039;GPL&#039;)
depends=(&#039;gimp&#039;)
source=(http://downloads.sourceforge.net/gimpdbpplugin/dbpSrc-$_pkgver.tgz)
sha512sums=(&#039;f2b05610c0edd179a394f510951147fb3362564d67cb2b48ecbd1840b97b9c3de43c718db06576a99d9a5b76384ff4b4a4cdfeddd16a015d161f338d351be925&#039;)

build() {
  cd &quot;$srcdir/dbp-$pkgver&quot;
  make
}

package() {
  cd &quot;$srcdir/dbp-$pkgver&quot;
  mkdir -p $pkgdir/usr/lib/gimp/2.0/plug-ins/
  cp dbp $pkgdir/usr/lib/gimp/2.0/plug-ins/
}</code></pre></div><p>It looks like I didn&#039;t package it correctly the first time around. I fixed it now <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-04-21T13:10:30Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4394#p4394</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4313#p4313" />
			<content type="html"><![CDATA[<p>Just also a reminder: We are for sure not &quot;Arch GNU/Linux&quot; any longer and our compatibility is and will going to vanish very soon. Even though packages like <strong>img2pdf</strong> are not included for a reason: They are impossible to build correct in a clean chroot-environment as their dependency is also not possible to be resolved (meaning therefore the dependencies). Here is a log from earlier tryouts:</p><div class="codebox"><pre><code> |  WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.
 |  Download error on https://pypi.org/simple/setuptools_scm_git_archive/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
 |  Download error on https://pypi.org/simple/setuptools-scm-git-archive/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
 |  Couldn&#039;t find index page for &#039;setuptools_scm_git_archive&#039; (maybe misspelled?)</code></pre></div><p>To explain: Even to have some stable tarball does not mean the concurrent package is respecting no further download. This is not supported within our build-environment and therefore it is not possible to include those packages, to be called for sure not clean for building. And yes: I understand absolutely the point to include more packages at a time and using the PKGBUILD-scripts back from Arch GNU/Linux at all. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /> Nevertheless: The warning stays as to be seen above. Those packages and PKGBUILD-scripts can be only source for further ways from now on. Many are not designed very good or even worse just built without any clean environment and just uploaded as finished package. So there is this illusion they work in some way. They do not work and will not ever work for real!</p><p>The best way for testing is to setup <strong>libretools</strong> and use a chroot-environment. The commands <strong>makepkg</strong> and <strong>libremakepkg</strong> are not fully comparable at all, right from the beginning <strong>makepkg</strong> is absolutely tolerant for anything to be downloaded in between. But the chroot-environment is for sure not and very strict: One phase for collecting, afterwards building, checking and packaging without any further connection. Missing dependencies? Or wrong defined parameters will lead to an immediate ending of the process while <strong>makepkg</strong> stay a bit longer or tolerate them through downloading (to be seen in the log above as difference). And <strong>makepkg</strong> is using local installed files and packages, even when not defined within depends or makedepends. The result is not a clean package at all, not possible for used within chroot-environments and therefore also not possible to be included within the repositories. That&#039;s the reasoning when we exclude packages besides being incompatible, unfree, insecure or more. And with the dependency-example above: There is the deprecated-warning for everyone being alarmed that our way without python-pip is not possible for long with it. It is just rational to left out those packages as they are of no use and other applications using them the same.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2022-04-06T18:18:51Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4313#p4313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4304#p4304" />
			<content type="html"><![CDATA[<p>Yes, thanks for addition. We have already made a patch for <strong>zbar</strong> being now in the queue for building and release on <strong>testing</strong>.<br />Same for <strong>libinklevel</strong> and <strong>ink</strong>.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2022-04-06T12:44:00Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4304#p4304</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4303#p4303" />
			<content type="html"><![CDATA[<p>More useful easy to install packages include libinklevel and ink from AUR (to show printer&#039;s ink levels) and the package img2pdf which converts images to a PDF file (available from Arch&#039;s repo - can be compiled with an older version of python-pikepdf such as 2.16.1 which is also available from Arch&#039;s repo after removing the check section and its dependencies from img2pdf&#039;s PKGBUILD).</p><p>The package zbar-gtk from Hyperbola&#039;s repos cannot be installed - a workaround is to compile a version of zbar containing zbar-gtk such as using this PKGBUILD (this version provides both zbar-gtk and zbar-qt).</p><div class="codebox"><pre><code># Maintainer (Arch): Felix Yan &lt;felixonmars@archlinux.org&gt;
# Contributor (Arch): Marti Raudsepp &lt;marti@juffo.org&gt;
# Contributor (Arch): Radu Andries &lt;admiral0@tuxfamily.org&gt;
# Contributor (Arch): Andy Weidenbaum &lt;archbaum@gmail.com&gt;
# Maintainer: André Silva &lt;emulatorman@hyperbola.info&gt;

pkgname=zbar
pkgver=0.23.90
_debver=0.23.90
_debrel=1
pkgrel=1
pkgdesc=&quot;Application and library for reading bar codes from various sources&quot;
arch=(&#039;i686&#039; &#039;x86_64&#039;)
url=&quot;https://github.com/mchehab/zbar&quot;
license=(&#039;LGPL-2.1&#039;)
makedepends=(&#039;gtk&#039; &#039;graphicsmagick&#039; &#039;libxv&#039; &#039;v4l-utils&#039; &#039;qt-x11extras&#039; &#039;python&#039; &#039;xmlto&#039;
             &#039;docbook-xsl&#039; &#039;gobject-introspection&#039; &#039;quilt&#039;)
conflicts=(&#039;zbar-gtk&#039; &#039;zbar-qt&#039; &#039;python-zbar&#039;)
provides=(&#039;zbar-gtk&#039; &#039;zbar-qt&#039; &#039;python-zbar&#039;)
replaces=(&#039;zbar-gtk&#039; &#039;zbar-qt&#039; &#039;python-zbar&#039;)
source=(&quot;$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz&quot;
        &quot;https://deb.debian.org/debian/pool/main/z/zbar/zbar_$_debver-$_debrel.debian.tar.xz&quot;)
sha512sums=(&#039;d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb&#039;
            &#039;14992376d82dae014450b1c9e44afce71be776fc2edc3d37436330f311322b508de7f28e96409d483dd5c40fd7e31922788b6a8975480e15ed784e0c9c43e11b&#039;)

prepare() {
  cd $pkgname-$pkgver
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS=&#039;-p ab --no-timestamps --no-index&#039;
    export QUILT_DIFF_ARGS=&#039;--no-timestamps&#039;

    mv &quot;$srcdir&quot;/debian .

    quilt push -av
  fi
  autoreconf -vfi
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --with-qt --with-gtk=gtk3 --without-dbus --with-graphicsmagick --without-imagemagick CFLAGS=&quot;$CFLAGS -DNDEBUG&quot;
  sed -i -e &#039;s/ -shared / -Wl,-O1,--as-needed\0/g&#039; libtool
  make
}

package() {
  cd zbar-$pkgver
  make DESTDIR=&quot;$pkgdir&quot; install

  install -Dm644 LICENSE.md -t &quot;$pkgdir&quot;/usr/share/licenses/$pkgname
}

# vim:set ts=2 sw=2 et:</code></pre></div>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-04-06T11:08:50Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4303#p4303</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4282#p4282" />
			<content type="html"><![CDATA[<p>Another easy to install package from Arch&#039;s repo is python-html2text which is useful to produce a text file from an HTML file (which might contain non-free JavaScript).</p>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-04-01T06:03:26Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4282#p4282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4275#p4275" />
			<content type="html"><![CDATA[<p>Thanks! <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2022-03-30T12:16:34Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4275#p4275</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Hyperbola 0.4] PKGBUILDs for missing packages]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4274#p4274" />
			<content type="html"><![CDATA[<p>Hyperbola 0.4 does not have a Hunspell dictionary to use with Claws or Icedove-UXP other than a Hebrew dictionary. The following PKGBUILD based on hunspell-nb AUR PKGBUILD provides a UK English dictionary that can be used by Icedove and Claws. By making small modifications to the PKGBUILD other dictionaries can be installed as well.<br /></p><div class="quotebox"><blockquote><p># Maintainer: Martin Sandsmark &lt;martin.sandsmark@kde.org&gt;</p><p>pkgname=hunspell-en_GB<br />_LOver=6.1.3<br />pkgver=6.1.3.2<br />pkgrel=1<br />pkgdesc=&#039;Spell checking support for British English&#039;<br />arch=(&#039;any&#039;)<br />url=&#039;https://extensions.openoffice.org/en/node/3785&#039;<br />license=(&#039;LGPL&#039;)<br />depends=(&#039;hunspell&#039;)<br />source=(&quot;https://download.documentfoundation.org/libreoffice/src/${_LOver}/libreoffice-dictionaries-${pkgver}.tar.xz&quot;)<br />sha512sums=(&#039;5ded2c03ca83cca9e49234f712c3e584509a547d28b8a2b2715388a8a69d5d5de5181c06d7b0488e6b5a9949aa98dca96b29b3cffcb7681a3&gt;</p><p>package() {<br />&nbsp; cd &quot;${srcdir}/libreoffice-${pkgver}/dictionaries/en/&quot;<br />&nbsp; install -dm755 ${pkgdir}/usr/share/hunspell<br />&nbsp; install -m644 en_GB.aff $pkgdir/usr/share/hunspell<br />&nbsp; install -m644 en_GB.dic $pkgdir/usr/share/hunspell</p><p>&nbsp; install -dm755 ${pkgdir}/usr/share/myspell/dicts<br />&nbsp; ln -sv /usr/share/hunspell/en_GB.aff ${pkgdir}/usr/share/myspell/dicts/<br />&nbsp; ln -sv /usr/share/hunspell/en_GB.dic ${pkgdir}/usr/share/myspell/dicts/<br />}</p></blockquote></div><p>Other useful missing packages that are easy to install include speedtest-cli (just compile the Arch PKGBUILD), streamlink (upgrade python-lxml and python-requests PKGBUILDs from Arch, removing the check sections and dependencies, and also install python-websocket-client and python-pycountry from Arch) and mtn (use AUR PKGBUILD).</p><p>I also use the srt programme in this PKGBUILD to edit subtitle files.<br /></p><div class="quotebox"><blockquote><p># Maintainer: Maxim Andersson &lt;thesilentboatman@gmail.com&gt;</p><p>pkgname=python-srt <br />_pkgname=srt<br />pkgver=3.5.2<br />pkgrel=1<br />pkgdesc=&quot;A tiny but featureful Python library for parsing, modifying, and<br />composing SRT files&quot;<br />arch=(&#039;any&#039;)<br />url=&quot;https://github.com/cdown/srt&quot;<br />license=(&#039;MIT&#039;)<br />depends=(&#039;python&#039;)<br />makedepends=(&#039;python-setuptools&#039;)<br />source=(&quot;https://github.com/cdown/srt/archive/${pkgver}.tar.gz&quot;)<br />sha512sums=(&#039;b43408c54a27bb878c9f8926ab6a26cc0403c65b5e25f033b9521e93044e3dd5d79ce18e05b62aecfab92dc42062644daed82676b36526991e434ba4a23f8f99&#039;)</p><p>package() {<br />&nbsp; cd &quot;${srcdir}/${_pkgname}-${pkgver}&quot;</p><p>&nbsp; install -Dm644 LICENSE -t &quot;${pkgdir}/usr/share/licenses/${pkgname}&quot;<br />&nbsp; python setup.py install --root=&quot;${pkgdir}&quot; --optimize=1<br />}</p><p># vim:set ts=2 sw=2 et:</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-03-30T12:08:44Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4274#p4274</id>
		</entry>
</feed>
