summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 38ab277be4f72d677720b42168a49451355a889e (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
46
47
48
49
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): Christian Hesse <arch@eworm.de>
# Contributor (AUR): speps <speps at aur dot archlinux dot org>

# # I maintain this because:
# I use it and it is not in an official repo

pkgname=apulse
pkgver=0.1.13
pkgrel=1
pkgdesc='PulseAudio emulation for ALSA'
arch=('i686' 'x86_64' 'aarch64')
url='https://github.com/i-rinat/apulse'
license=('custom:MIT')
depends=('alsa-lib' 'glib2')
makedepends=('cmake')
install=apulse.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
        'asoundrc.sample')
b2sums=('8cf527daf21420a72e46968a3b07ab61029f404a2b6574ac1f08dd40528f3e6e4baf7e38f5914b0c89252e16eec5e8f3722be51e5a61b6a71c683e994740b4bf'
        '9daa8dbd6de6ec2855ae0105cd9f5cc2edf17af08286d209d15473f626a6a8e0073ebe79da640e0059c6224bcbde49dfab214029bfcf758c8a19439548c0fcec')

prepare() {
  cd apulse-${pkgver}

  mkdir -p build
}

build() {
  cd apulse-${pkgver}/build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd apulse-${pkgver}/build

  make DESTDIR="${pkgdir}/" install

  # sample asoundrc
  install -Dm644 ../../${source[1]} \
    "${pkgdir}/usr/share/${pkgname}/${source[1]}"

  # license
  install -Dm644 ../LICENSE.MIT \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}