Vergelijk commits
4 Commits
ac9a970bab
...
master
Auteur | SHA1 | Datum | |
---|---|---|---|
a1d25b44dd | |||
e60b0d46dd | |||
d2b530df88 | |||
2140e34b9f |
29
README.md
29
README.md
@ -6,7 +6,7 @@ distributions.
|
||||
- apt signature and package checksum verification
|
||||
- User-level installation
|
||||
|
||||
## Motivation
|
||||
## About
|
||||
Many popular software packages are often distributed as .deb packages, targeting Ubuntu primarily.
|
||||
Often they are not available in the repos of others distros. Even if they are, sometimes the version tends to be behind upstream for some time. They may also only be available as "unofficial" packages through user repositories such as AUR, PPA or Gentoo overlays.
|
||||
|
||||
@ -14,7 +14,14 @@ Examples for such packages are: Brave, Signal-Desktop, Element-Desktop, Spotify
|
||||
|
||||
debfetcher can fetch such packages from the official apt repos and keep them up to date.
|
||||
|
||||
The binaries in the .deb actually work on other distributions (often)
|
||||
The binaries in the .deb actually work on other distributions (often). In fact, distros
|
||||
often use simply fetch the .deb packages from the apt repo in their templates. But they aren't always
|
||||
quick to keep their template up to date with the latest upstream version.
|
||||
|
||||
There may therefore hardly be a practical benefit in using your distros package manager to install those. Your distro's
|
||||
package may essentially just be a "proxy" for the .deb. Although you can make a version bump yourself,
|
||||
it is rather inconvenient and you'll have to monitor for new releases yourself. Even though being out
|
||||
of date is not a big problem often, it obviously can be when you are missing out on security updates.
|
||||
|
||||
debfetcher simply identifies the latest version of a package in the corresponding apt repo, downloads it and then installs the binaries from the .deb.
|
||||
|
||||
@ -28,20 +35,21 @@ debfetcher verifies the repo signatures and .deb checksum (just like apt).
|
||||
- You don't have to wait for your distribution to make a version bump
|
||||
|
||||
## Status
|
||||
It is, and will most certainly remain, a hack (although a useful one for me)
|
||||
It is, and will most certainly remain, a "hack" (although a useful one for me)
|
||||
|
||||
## FAQ
|
||||
|
||||
### Sounds overall rather dirty. Does this even work?
|
||||
Naturally, this will not work for all packages due to ABI issues or library version mismatches.
|
||||
|
||||
However, using the .deb even for distros not based on debian is an approach taken by distris for propritary packages or packages where building from source is a significant maintenance load (i. e. electron-based apps). Overall, the idea is tested and not new.
|
||||
But as said above, this is not my idea. Using the .deb even for distros not based on Debian is an approach taken by distris for propritary packages or packages where building from source is a significant maintenance load (i. e. electron-based apps). Overall, the idea is tested and not new.
|
||||
|
||||
|
||||
### What if not all dependencies are installed?
|
||||
debfetcher aims to be distro-agnostic. It will not install any dependencies.
|
||||
|
||||
If they are missing, you'll get an error (most likely when starting the app).
|
||||
Hence, you will have to ensure yourself that they are installed. The packages debfetcher was tested on bundle some
|
||||
Hence, you will have to make sure that they are installed. The packages debfetcher was tested on bundle some
|
||||
of their dependencies. Also, in a typical Linux desktop installation chances are you already have all dependencies installed.
|
||||
|
||||
|
||||
@ -74,10 +82,11 @@ Execute
|
||||
DEBFETCHER_CONFIG="/path/to/debfetcher.user.conf" ./debfetcher.sh get signal
|
||||
```
|
||||
|
||||
Note: The config directories don't change.
|
||||
Note: The config/data directories of the installed packages won't change, which may or may not be
|
||||
problematic.
|
||||
|
||||
## Usage
|
||||
### Install a package
|
||||
### Install/Upgrade a package
|
||||
```
|
||||
debfetcher.sh get [packagename]
|
||||
```
|
||||
@ -86,9 +95,3 @@ debfetcher.sh get [packagename]
|
||||
```
|
||||
debfetcher.sh upgrade
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
26
packages/element-desktop.debfetcher
Normal file
26
packages/element-desktop.debfetcher
Normal file
@ -0,0 +1,26 @@
|
||||
APTURL="https://packages.element.io/debian"
|
||||
DISTRO="default"
|
||||
REPO="main"
|
||||
PUBKEY="${PUBKEY_PATH}/element-io-archive-keyring.gpg"
|
||||
PACKAGE="element-desktop"
|
||||
|
||||
TS=$(date +%s)
|
||||
THIS_BASEDIR="/opt/Element"
|
||||
|
||||
install()
|
||||
{
|
||||
#Inspired by Gentoo's ebuild
|
||||
|
||||
cp -a --parents -- opt/Element "${DEBFETCHER_INSTALL_DESTDIR}"
|
||||
cp --parents -- usr/share/applications/element-desktop.desktop "${DEBFETCHER_INSTALL_DESTDIR}"
|
||||
chmod o=r ${DEBFETCHER_INSTALL_DESTDIR}/usr/share/applications/element-desktop.desktop
|
||||
|
||||
ln -sf ${DEBFETCHER_INSTALL_DESTDIR}/opt/Element/element-desktop "${DEBFETCHER_BIN_SYMLINK_DIR}"
|
||||
|
||||
find usr -name element-desktop.png | while read line ; do
|
||||
path=$(dirname "$line")
|
||||
mkdir -p -- /${DEBFETCHER_INSTALL_DESTDIR}/${path}
|
||||
cp -a "$line" -- ${DEBFETCHER_INSTALL_DESTDIR}/${path}
|
||||
done
|
||||
}
|
||||
|
@ -9,9 +9,8 @@ THIS_BASEDIR="/opt/spotify"
|
||||
|
||||
install()
|
||||
{
|
||||
mkdir -p ${DEBFETCHER_INSTALL_DESTDIR}/${THIS_BASEDIR}
|
||||
patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/share/spotify/spotify
|
||||
cp -a usr/share/spotify/* ${DEBFETCHER_INSTALL_DESTDIR}/${THIS_BASEDIR}
|
||||
cp -a -- usr/share/spotify/ ${DEBFETCHER_INSTALL_DESTDIR}/${THIS_BASEDIR}
|
||||
|
||||
ln -sf ${DEBFETCHER_INSTALL_DESTDIR}/opt/spotify/spotify "${DEBFETCHER_BIN_SYMLINK_DIR}"
|
||||
}
|
||||
|
BIN
pubkeys/element-io-archive-keyring.gpg
Normal file
BIN
pubkeys/element-io-archive-keyring.gpg
Normal file
Binair bestand niet weergegeven.
Verwijs in nieuw issue
Block a user