Files

31 lines
1.1 KiB
Bash

# Maintainer: Felitendo
# This PKGBUILD is updated automatically:
# https://git.felo.gg/Felitendo/PKGBUILDS
pkgname=middleclick-autoscroll
pkgver=1.7.0
pkgrel=1
pkgdesc="Middle-click autoscroll in every application that supports it"
arch=('any')
url="https://git.felo.gg/LoonixTools/middleclick-autoscroll"
license=('GPL-3.0-or-later')
depends=('bash' 'systemd' 'coreutils' 'gawk' 'grep' 'sed' 'gettext')
makedepends=('gettext' 'scdoc')
optdepends=('flatpak: cover Flatpak applications too'
'spotify-launcher: cover the official Spotify client'
'steam: cover the Steam interface'
'desktop-file-utils: refresh the desktop database after a change')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('2583f80d56effb0fefcb93b6623a6f8a6cfdcf31217b8ca283591a882f484ea2')
build() {
# pass the version being packaged so `middleclick-autoscroll --version`
# cannot drift away from pkgver
make -C "${pkgname}" VERSION="$pkgver"
}
package() {
make -C "${pkgname}" VERSION="$pkgver" DESTDIR="$pkgdir" install
}