spacepaste

  1.  
  2. # Based on community/sndio
  3. # Reference: PKGBUILD(5)
  4. pkgname='sndio1.2'
  5. pkgver=1.2.0
  6. pkgrel=1
  7. pkgdesc='A small audio and MIDI framework part of the OpenBSD project'
  8. arch=(x86_64)
  9. url='http://www.sndio.org'
  10. license=(ISC)
  11. provides=('sndio')
  12. conflicts=('sndio')
  13. # sndio can be built without libbsd, but there are a bunch of individual
  14. # ISC-licensed files by different authors to extract the licenses from
  15. # if done that way. Licenses are complicated.
  16. depends=(alsa-lib libbsd)
  17. source=("http://www.sndio.org/sndio-$pkgver.tar.gz")
  18. # checksums provided by packager
  19. sha256sums=('b9808e189481904a4404b0c1715ad0c4b301e72abca8e49653bb526ff4e16cdc')
  20. backup=(etc/default/sndiod)
  21. build() {
  22. cd "sndio-$pkgver"
  23. ./configure --prefix=/usr --enable-alsa --with-libbsd
  24. make
  25. }
  26. package() {
  27. cd "sndio-$pkgver"
  28. make DESTDIR="$pkgdir/" install
  29. # install -D -m 644 contrib/sndiod.service \
  30. # "$pkgdir/usr/lib/systemd/system/sndiod.service"
  31. install -D -m 644 contrib/default.sndiod \
  32. "$pkgdir/etc/default/sndiod"
  33. install -d "$pkgdir/usr/share/licenses/sndio"
  34. # this is the most up-to-date license outside of bsd-compat,
  35. # which isn't being used in this build
  36. sed '/^ \*\//q' aucat/aucat.c > "$pkgdir/usr/share/licenses/sndio/LICENSE"
  37. }
  38.