summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7d7ce5a883238fcd4c004de3f1d186f89b8d6ae (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
36
37
38
39
40
41
42
43
44
45
# Maintainer: FenixFyreX <chaz.domerese@gmail.com>

pkgname=amixst
pkgver=1.0.1
pkgrel=1
pkgdesc='A free and open source volume wheel using Alsa and Qt5.'
arch=('i686' 'x86_64')
url='https://github.com/FenixFyreX/amixst'
license=('GPL3')

depends=('qt5-base' 'alsa-lib')
makedepends=('git' 'qt5-tools' 'gcc')
optdepends=('qt5-styleplugins: more Qt5 styles')
provides=("${pkgname}=${pkgver}")

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/FenixFyreX/amixst/archive/v${pkgver}.tar.gz")

md5sums=("fb40f02baaf451f05500f8c1f2f45b10")

prepare() {
    mkdir -p "${srcdir}"/build
}

build() {
    cd "${srcdir}"/build
    qmake-qt5 "../amixst-${pkgver}"/src/amixst.pro \
        CONFIG+=release     \
        -spec linux-g++
    
    make -j $(grep -c ^processor /proc/cpuinfo)
}

package() {
    cd "${srcdir}"/build
    
    install -dm644 "${pkgdir}"/usr/bin
    install -m755 "${srcdir}"/build/amixst "${pkgdir}"/usr/bin
    
    install -dm644 "${pkgdir}"/etc/amixst
    install -m755 "${srcdir}/amixst-${pkgver}"/etc/conf "${pkgdir}"/etc/amixst/conf
    
    install -dm644 "${pkgdir}"/usr/share/amixst
    install -m755 "${srcdir}/amixst-${pkgver}"/COPYING "${pkgdir}"/usr/share/amixst
    install -m755 "${srcdir}/amixst-${pkgver}"/LICENSE "${pkgdir}"/usr/share/amixst
}