Files
PKGBUILDS/bottles-opener/PKGBUILD
T

33 lines
1.3 KiB
Bash

# Maintainer: Felitendo
# This PKGBUILD is updated automatically:
# https://github.com/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"
license=('GPL-3.0-or-later')
depends=('bash' 'coreutils' 'gawk' 'grep' 'sed' 'gettext' 'shared-mime-info' 'systemd')
makedepends=('gettext' 'scdoc')
optdepends=('bottles: Bottles itself (the Flatpak works too)'
'python-yaml: read bottles without starting the Bottles Flatpak'
'icoextract: extract file icons without starting the Bottles Flatpak'
'libnotify: report files that could not be opened'
'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=('ff9d50cf8737a0c1d4f43ed145e138de1f55c9ec3bed3d7a98234f104df15a64')
build() {
# pass the version being packaged so `bottles-opener --version` cannot drift
# away from pkgver
make -C "${pkgname}-${pkgver}" VERSION="$pkgver"
}
package() {
make -C "${pkgname}-${pkgver}" VERSION="$pkgver" DESTDIR="$pkgdir" install
}