upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / linuxsampler / repos / community-x86_64 / PKGBUILD
blob0a0ae7c1bbca709b0de860ac3e7572b0373a17d2
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: svoufff <svoufff at gmail dot com>
4 # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
6 pkgname=linuxsampler
7 pkgver=2.2.0
8 pkgrel=3
9 pkgdesc="Professional-grade audio sampler alternative to Gigasampler"
10 arch=(x86_64)
11 url="https://www.linuxsampler.org/"
12 license=(GPL2)
13 groups=(pro-audio)
14 depends=(
15   alsa-lib libasound.so
16   gcc-libs
17   glibc
18   libgig libgig.so
19   jack libjack.so
20   libsndfile libsndfile.so
21   sqlite
23 makedepends=(
24   clang
25   dssi
26   ladspa
27   lv2
29 optdepends=(
30   'dssi-host: for DSSI plugin'
31   'lv2-host: for LV2 plugin'
33 provides=(liblinuxsampler.so)
34 source=(
35   https://download.linuxsampler.org/packages/$pkgname-$pkgver.tar.bz2
36   $pkgname-2.2.0-libdir.patch
37   $pkgname-2.2.0-libgig_package.patch
39 sha512sums=('9015bb8d3af125e13c5c2ef3ae2d3987f7b7dda72e238cff25e622a3291019f5e392195dd27e7e783c70d877d9b267915fc443369eb17117e5eb7c54b8496c68'
40             'fd552a6efff47ddd0114f7d394d699ba2df624c5a9dfd3b88f754f38b4aa7c9e04523b79b179e1f4d8f73cb142158134d74a11eb8718f8a22ace2a0d5b2f0c86'
41             '84c5e2a322783e33e83aa319466c5e49f32d4b5175f63515df7857ddcdb9d2a3a11afde376b77d1f18c474ab341d42d2d1e018ab2525971b680fe36abbd221d1')
42 b2sums=('9650938d0aace876e817884121b824713dd2f747505344d7895e7d99da62f2214fb4c4bf43c398f4e486202e23e7a57288e19734e8c565a917d823169deb717a'
43         '98df780dfe7bf1a0379e7b4a15390aab411b1a5b8ef5c9c9fe04cdcd963ed572eeeaa00eb184017b61248bc396f58cfca571a748d6d17caf5030a447a05ebbf0'
44         '599ff6db7c87c4c4ee2306f62c6bec2a612d3c556c371a660430d09c93cda7b0b951f78e742d679407215fabb60939619fc9edcbf3813bf1665a9ee5fe0ddf95')
46 prepare(){
47   # install shared object in global namespace
48   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-2.2.0-libdir.patch
49   # fix generation of instruments in package()
50   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-2.2.0-libgig_package.patch
53 build() {
54   cd $pkgname-$pkgver
55   CXX=clang++ CC=clang ./configure --prefix=/usr
56   # prevent excessive overlinking due to libtool
57   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
58   make
61 package() {
62   cd $pkgname-$pkgver
63   make DESTDIR="$pkgdir" install
64   # docs
65   install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
66   # lscp files conflict with nilfs-utils:
67   # https://bugs.archlinux.org/task/45827
68   mv -v "$pkgdir/usr/bin/lscp" "${pkgdir}/usr/bin/lscp-$pkgname"
69   mv -v "$pkgdir/usr/share/man/man1/lscp.1" "$pkgdir/usr/share/man/man1/lscp-$pkgname.1"
71 # vim:set ts=2 sw=2 et: