Compare commits

..

1 Melakukan

Penulis SHA1 Pesan Tanggal
ac9a970bab update README 2023-04-09 16:05:39 +02:00
4 mengubah file dengan 15 tambahan dan 43 penghapusan

Melihat File

@ -6,7 +6,7 @@ distributions.
- apt signature and package checksum verification
- User-level installation
## About
## Motivation
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,14 +14,7 @@ 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). 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.
The binaries in the .deb actually work on other distributions (often)
debfetcher simply identifies the latest version of a package in the corresponding apt repo, downloads it and then installs the binaries from the .deb.
@ -35,21 +28,20 @@ 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.
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.
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.
### 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 make sure that they are installed. The packages debfetcher was tested on bundle some
Hence, you will have to ensure yourself 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.
@ -82,11 +74,10 @@ Execute
DEBFETCHER_CONFIG="/path/to/debfetcher.user.conf" ./debfetcher.sh get signal
```
Note: The config/data directories of the installed packages won't change, which may or may not be
problematic.
Note: The config directories don't change.
## Usage
### Install/Upgrade a package
### Install a package
```
debfetcher.sh get [packagename]
```
@ -95,3 +86,9 @@ debfetcher.sh get [packagename]
```
debfetcher.sh upgrade
```

Melihat File

@ -1,26 +0,0 @@
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
}

Melihat File

@ -9,8 +9,9 @@ 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}"
}

Binary file not shown.