summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37ff2e29ea53f0e0abf7f4ce907022356614da19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=gnome-shell-extension-sound-output-device-chooser-git
pkgver=r320.593d652
pkgrel=1
pkgdesc="Enable selection of sound source and sink devices."
arch=('any')
url="https://github.com/kgshank/gse-sound-output-device-chooser.git"
install=device-chooser.install
license=('GPL3')
depends=('gnome-shell')
makedepends=('git')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${pkgname}"

    make build
}

package() {
    cd "${srcdir}/${pkgname}"

    INSTALL_DIR="${pkgdir}/usr/share/gnome-shell/extensions"
    install -dm755 "${INSTALL_DIR}"

    make INSTALL_DIR="${INSTALL_DIR}" install
}