Closed ghost closed 5 years ago
Okay so after researching a little bit I realized I was able to extract the .deb
package and install it from there! Full template file:
# Template file for 'iridium-browser'
pkgname=iridium-browser
version=2019.04.73
revision=1
archs="x86_64"
build_style=fetch
hostmakedepends="bison clang gperf libatomic-devel libevent-devel libglib-devel ninja python"
makedepends="alsa-lib-devel at-spi2-atk-devel at-spi2-core-devel atk-devel cups-devel elfutils-devel eudev-libudev-devel expat-devel ffmpeg-devel fontconfig-devel freetype-devel GConf-devel gdk-pixbuf-devel glibc gtk+-devel gtk+3-devel harfbuzz-devel icu-devel json-c-devel jsoncpp-devel libcap-devel libdbus-c++-devel libdrm-devel libevent-devel libexif-devel libffi-devel libflac-devel libgcc-devel libgcrypt-devel libgnome-keyring-devel libjpeg-turbo-devel libmtp-devel libpng-devel libressl-devel libsrtp-devel libstdc++-devel libva-devel libwebp-devel libX11-devel libxcb-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXext-devel libXfixes-devel libXi-devel libxkbcommon-devel libxml2-devel libXrandr-devel libXrender-devel libXScrnSaver-devel libxslt-devel libXtst-devel minizip-devel mit-krb5-devel nspr-devel nss-devel opus-devel pango-devel pciutils-devel plib-devel protobuf protobuf-devel pulseaudio-devel re2-devel snappy-devel speech-dispatcher-devel speex-devel xss-lock zlib-devel"
depends="desktop-file-utils hicolor-icon-theme libexif xdg-utils"
short_desc="Chromium based web browser with a focus on privacy"
maintainer="Austin R <austin.riddell@tutanota.com>"
license="BSD-3-Clause"
homepage="https://iridiumbrowser.de/"
distfiles="https://downloads.iridiumbrowser.de/deb/pool/main/i/iridium-browser/${pkgname}_${version}-1iridium0_amd64.deb"
checksum=12c64bec477ffe5b998994bcd7f1078abff3691edc1c25cd4792e0e59b78ba90
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}-1iridium0_amd64.deb
tar xf data.tar.xz
}
do_install() {
vcopy etc /
vcopy usr /
}
post_install() {
vlicense LICENSE
vlicense LICENSE.BSD
}
void-packages PR: https://github.com/void-linux/void-packages/pull/14795
Updated template (realized I didn't need to import all the dependencies):
# Template file for 'iridium-browser'
pkgname=iridium-browser
version=2019.04.73
revision=1
archs="x86_64"
build_style=fetch
depends="desktop-file-utils hicolor-icon-theme libexif xdg-utils"
short_desc="Chromium based web browser with a focus on privacy"
maintainer="Austin R <austin.riddell@tutanota.com>"
license="BSD-3-Clause"
homepage="https://iridiumbrowser.de/"
distfiles="https://downloads.iridiumbrowser.de/deb/pool/main/i/iridium-browser/${pkgname}_${version}-1iridium0_amd64.deb"
checksum=12c64bec477ffe5b998994bcd7f1078abff3691edc1c25cd4792e0e59b78ba90
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}-1iridium0_amd64.deb
tar xf data.tar.xz
}
do_install() {
vcopy etc /
vcopy usr /
}
post_install() {
vlicense usr/share/doc/iridium-browser/copyright
}
Hi! I'm currently trying to make a build of Iridium on Void Linux but have never done anything like this before and am not too sure where to start. Void uses a binary package manager (xbps) and can build packages similarily to Arch's PKGBUILD. Using a template file you can tell xbps what build dependencies are required, where to pull files from, and how to build the binary. Currently my template looks like this:
The documentation for building packages on Void is here (https://github.com/void-linux/void-packages/blob/master/Manual.md) and the guide for contributing is here (https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md)
From what I've read the template also needs a build script and it looks like some build scripts are already packaged with xbps. Since there is already a Chromium package on Void I've been using that to supplement (i.e. finding equivelent packages and getting a build script). Currently the script in the template file looks like this:
It's a copy of the script found in the Chromium template (https://github.com/void-linux/void-packages/blob/master/srcpkgs/chromium/template) minus some patches.
I've been trying to consolidate what I've found in the Chromium template with what I've found in the Sources file here (https://downloads.iridiumbrowser.de/deb/dists/stable/snapshots/2019.04.73-20190520/main/source/) and the Packages file here (https://downloads.iridiumbrowser.de/deb/dists/stable/snapshots/2019.04.73-20190520/main/binary-amd64/Packages) but even with all of this I've still been running into a lot of compiling errors (things like
=> ERROR: iridium-2019.04.73_1: unknown distfile suffix for iridium-browser_2019.04.73-1iridium0_amd64.deb.
or=> ERROR: iridium-2019.04.73_1: cannot find iridium-browser_2019.04.73-1iridium0.debian.tar.xz, use 'xbps-src fetch' first.
)Haha like I said I'm very new to this so I wasn't too surprised but I'm not really sure where to go from here. I still have questions about whether or not I'm pulling the right dependencies or from the right distribution (since Void uses binary packages). If anyone would be able to help me I would greatly appriciate it!
Also I apoligize for being so wordy, and thank you for taking your time to read this. The template file that I'm using is attatched below (it's linked as
template.txt
but normally is should just betemplate
). Thank you again!template.txt