bottles-opener, bt-volume-step, cachy-auto-update, face-unlock, face-unlock-bin, middleclick-autoscroll: source from git.felo.gg [skip ci]
This commit is contained in:
1 parent
30617166f5
commit
06bc509002
12 files changed
+72
-64
No files matched your search
@@ -1,13 +1,13 @@
|
||||
# Maintainer: Felitendo
|
||||
# This PKGBUILD is updated automatically:
|
||||
# https://github.com/Felitendo/PKGBUILDS
|
||||
# https://git.felo.gg/Felitendo/PKGBUILDS
|
||||
|
||||
pkgname=bottles-opener
|
||||
pkgver=0.1.1
|
||||
pkgrel=1
|
||||
pkgdesc="Double-click a file and it opens in its Windows program, inside its Bottles bottle"
|
||||
arch=('any')
|
||||
url="https://github.com/LoonixTools/bottles-opener"
|
||||
url="https://git.felo.gg/LoonixTools/bottles-opener"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=('bash' 'coreutils' 'gawk' 'grep' 'sed' 'gettext' 'shared-mime-info' 'systemd')
|
||||
makedepends=('gettext' 'scdoc')
|
||||
@@ -18,15 +18,15 @@ optdepends=('bottles: Bottles itself (the Flatpak works too)'
|
||||
'desktop-file-utils: refresh the desktop database after a change'
|
||||
'flatpak: open files with the Bottles Flatpak')
|
||||
install="${pkgname}.install"
|
||||
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha256sums=('c8289f0941d9355993f4912bb69aea2fd916c1ba706ee15e497459de296bd639')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('3ec601cd59006e72d3b4c1d20b8967aad77b7baf20525d8ff53a7ae4f4822bd9')
|
||||
|
||||
build() {
|
||||
# pass the version being packaged so `bottles-opener --version` cannot drift
|
||||
# away from pkgver
|
||||
make -C "${pkgname}-${pkgver}" VERSION="$pkgver"
|
||||
make -C "${pkgname}" VERSION="$pkgver"
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C "${pkgname}-${pkgver}" VERSION="$pkgver" DESTDIR="$pkgdir" install
|
||||
make -C "${pkgname}" VERSION="$pkgver" DESTDIR="$pkgdir" install
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
# bottles-opener - opens files in their Windows program inside Bottles
|
||||
# (https://github.com/LoonixTools/bottles-opener).
|
||||
# (https://git.felo.gg/LoonixTools/bottles-opener).
|
||||
#
|
||||
# Shell and two small Python scripts, a gettext catalog and a scdoc man page:
|
||||
# the PKGBUILD runs the upstream Makefile against the release tarball.
|
||||
@@ -10,7 +10,10 @@ UPSTREAM_REPO="LoonixTools/bottles-opener"
|
||||
BUILD_DEPS=(gettext scdoc)
|
||||
|
||||
latest_version() {
|
||||
gh api "repos/$UPSTREAM_REPO/releases/latest" --jq '.tag_name' | sed 's/^v//'
|
||||
# the highest vX.Y.Z tag; not every release has a release page
|
||||
curl -sf "https://git.felo.gg/api/v1/repos/$UPSTREAM_REPO/tags?limit=50" \
|
||||
| jq -r '.[].name | select(test("^v[0-9]+(\\.[0-9]+)*$"))' \
|
||||
| sed 's/^v//' | sort -V | tail -n 1
|
||||
}
|
||||
|
||||
# refresh_checksums <version> <pkgbuild-path>
|
||||
@@ -18,7 +21,7 @@ refresh_checksums() {
|
||||
local ver="$1" pkgbuild="$2"
|
||||
local sha
|
||||
|
||||
sha="$(curl -sfL "https://github.com/$UPSTREAM_REPO/archive/refs/tags/v$ver.tar.gz" \
|
||||
sha="$(curl -sfL "https://git.felo.gg/$UPSTREAM_REPO/archive/v$ver.tar.gz" \
|
||||
| sha256sum | cut -d' ' -f1)"
|
||||
|
||||
sed -i "s|^sha256sums=.*|sha256sums=('$sha')|" "$pkgbuild"
|
||||
|
||||
Reference in new issue
Block a user