summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42cc9ddd8868d8ea803836fd1f753971b0c4611e (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
# Maintainer: Bruno Goncalves <bigbruno@gmail.com>

pkgname=biglinux-noise-reduction-pipewire
pkgver=$(date +%y.%m.%d)
pkgrel=$(date +%H%M)
arch=('any')
license=('GPL')
url="https://github.com/biglinux/biglinux-noise-reduction-pipewire"
pkgdesc="Interface to enable or disable microphone noise reduction, using https://github.com/werman/noise-suppression-for-voice"
depends=('bigbashview' 'noise-suppression-for-voice>=0.91.3-1' 'pipewire')
source=("git+https://github.com/biglinux/biglinux-noise-reduction-pipewire.git")
md5sums=(SKIP)

package() {
    # Verify default folder
    if [ -d "${srcdir}/${pkgname}/${pkgname}" ]; then
        InternalDir="${srcdir}/${pkgname}/${pkgname}"
    else
        InternalDir="${srcdir}/${pkgname}"
    fi


    # Copy files
    if [ -d "${InternalDir}/usr" ]; then
        cp -r "${InternalDir}/usr" "${pkgdir}/"
    fi

    if [ -d "${InternalDir}/etc" ]; then
        cp -r "${InternalDir}/etc" "${pkgdir}/"
    fi

    if [ -d "${InternalDir}/opt" ]; then
        cp -r "${InternalDir}/opt" "${pkgdir}/"
    fi
}