archrelease: copy trunk to community-any
[ArchLinux/community.git] / gxplugins.lv2 / repos / community-x86_64 / PKGBUILD
blob26f8144a381b3096faa19a62c0821acb4000557a
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=GxPlugins.lv2
4 _othername=gxplugins
5 pkgname=gxplugins.lv2
6 pkgver=1.0
7 pkgrel=1
8 pkgdesc="A set of extra lv2 plugins from the guitarix project"
9 arch=(x86_64)
10 url="https://github.com/brummer10/gxplugins.lv2"
11 license=(GPL3)
12 groups=(lv2-plugins)
13 # TODO: devendor zita-resampler if possible
14 depends=(cairo gcc-libs glibc libx11 lv2-host)
15 makedepends=(lv2)
16 checkdepends=(lv2lint)
17 source=($url/releases/download/v$pkgver/${_othername}_${pkgver}_src.tar.bz2)
18 sha512sums=('590b5cdc662428260b64afa55aaed8632f7b8ab3307a19daff68b59c5de8b07d874408a31c0180f7195bbca06b71e8c907fbbb5db91cdc9e8c7e6519123687bb')
19 b2sums=('22674f42832a37f97ce93b75201167707d517e5ddda87dbbb4a87d12fca62d9691e24074eceea58db387d5e7e857673bcae0ae56fcbb9c3535857e6e864cc120')
21 prepare() {
22   # there are lots of unneeded files: 
23   find $_name -type d -iname "*.git/*" -exec rm -frv {} +
26 build() {
27   make -C $_name
30 check() {
31   local _plugin_name
32   local base_url="http://guitarix.sourceforge.net/plugins"
33   declare -A _urls=(
34     ["GxVoodoFuzz.lv2"]="gx_voodoo_#_voodoo_"
35     ["GxVmk2.lv2"]="gx_vmk2d_#_vmk2d_"
36     ["GxVintageFuzzMaster.lv2"]="gx_vfm_#_vfm_"
37     ["GxValveCaster.lv2"]="gx_valvecaster_#_valvecaster_"
38     ["GxVBassPreAmp.lv2"]="gx_voxbass_#_voxbass_"
39     ["GxUltraCab.lv2"]="gx_ultracab_#_ultracab_"
40     ["GxUVox720k.lv2"]="gx_uvox_#_uvox_"
41     ["GxTubeDistortion.lv2"]="gx_TubeDistortion_#_TubeDistortion_"
42     ["GxToneMachine.lv2"]="gx_tonemachine_#_tonemachine_"
43     ["GxTimRay.lv2"]="gx_timray_#_timray_"
44     ["GxSuppaToneBender.lv2"]="gx_vstb_#_vstb_"
45     ["GxSupersonic.lv2"]="gx_supersonic_#_supersonic_"
46     ["GxSuperFuzz.lv2"]="gx_sfp_#_sfp_"
47     ["GxSunFace.lv2"]="gx_SunFace_#_SunFace_"
48     ["GxSlowGear.lv2"]="gx_slowgear_#_slowgear_"
49     ["GxSloopyBlue.lv2"]="gx_sloopyblue_#_sloopyblue_"
50     ["GxShakaTube.lv2"]="gx_shakatube_#_shakatube_"
51     ["GxSaturator.lv2"]="gx_saturate_#_saturate_"
52     ["GxSVT.lv2"]="gx_ampegsvt_#_ampegsvt_"
53     ["GxSD2Lead.lv2"]="gx_sd2lead_#_sd2lead_"
54     ["GxSD1.lv2"]="gx_sd1sim_#_sd1sim_"
55     ["GxQuack.lv2"]="gx_quack_#_quack_"
56     ["GxPlexi.lv2"]="gx_plexi_#_plexi_"
57     ["GxMicroAmp.lv2"]="gx_MicroAmp_#_MicroAmp_"
58     ["GxLuna.lv2"]="gx_luna_#_luna_"
59     ["GxLiquidDrive.lv2"]="gx_liquiddrive_#_liquiddrive_"
60     ["GxKnightFuzz.lv2"]="gx_KnightFuzz_#_KnightFuzz_"
61     ["GxHyperion.lv2"]="gx_hyperion_#_hyperion_"
62     ["GxHotBox.lv2"]="gx_hotbox_#_hotbox_"
63     ["GxHeathkit.lv2"]="gx_Heathkit_#_Heathkit_"
64     ["GxGuvnor.lv2"]="gx_guvnor_#_guvnor_"
65     ["GxFz1s.lv2"]="gx_maestro_fz1s_#_maestro_fz1s_"
66     ["GxFz1b.lv2"]="gx_maestro_fz1b_#_maestro_fz1b_"
67     ["GxEternity.lv2"]="gx_eternity_#_eternity_"
68     ["GxEpic.lv2"]="gx_epic_#_epic_"
69     ["GxDOP250.lv2"]="gx_DOP250_#_DOP250_"
70     ["GxCreamMachine.lv2"]="gx_CreamMachine_#_CreamMachine_"
71     ["GxClubDrive.lv2"]="gx_clubdrive_#_clubdrive_"
72     ["GxBottleRocket.lv2"]="gx_bottlerocket_#_bottlerocket_"
73     ["GxBoobTube.lv2"]="gx_boobtube_#_boobtube_"
74     ["GxBlueAmp.lv2"]="gx_blueamp_#_blueamp_"
75     ["GxBaJaTubeDriver.lv2"]="gx_bajatubedriver_#_bajatubedriver_"
76     ["GxAxisFace.lv2"]="gx_AxisFace_#_AxisFace_"
77   )
78   declare -A _names=(
79     ["GxVoodoFuzz.lv2"]="gx_voodoo.lv2"
80     ["GxVmk2.lv2"]="gx_vmk2d.lv2"
81     ["GxVintageFuzzMaster.lv2"]="gx_vfm.lv2"
82     ["GxValveCaster.lv2"]="gx_valvecaster.lv2"
83     ["GxVBassPreAmp.lv2"]="gx_voxbass.lv2"
84     ["GxUltraCab.lv2"]="gx_ultracab.lv2"
85     ["GxUVox720k.lv2"]="gx_uvox.lv2"
86     ["GxTubeDistortion.lv2"]="gx_TubeDistortion.lv2"
87     ["GxToneMachine.lv2"]="gx_tonemachine.lv2"
88     ["GxTimRay.lv2"]="gx_timray.lv2"
89     ["GxSuppaToneBender.lv2"]="gx_vstb.lv2"
90     ["GxSupersonic.lv2"]="gx_supersonic.lv2"
91     ["GxSuperFuzz.lv2"]="gx_sfp.lv2"
92     ["GxSunFace.lv2"]="gx_SunFace.lv2"
93     ["GxSlowGear.lv2"]="gx_slowgear.lv2"
94     ["GxSloopyBlue.lv2"]="gx_sloopyblue.lv2"
95     ["GxShakaTube.lv2"]="gx_shakatube.lv2"
96     ["GxSaturator.lv2"]="gx_saturate.lv2"
97     ["GxSVT.lv2"]="gx_ampegsvt.lv2"
98     ["GxSD2Lead.lv2"]="gx_sd2lead.lv2"
99     ["GxSD1.lv2"]="gx_sd1sim.lv2"
100     ["GxQuack.lv2"]="gx_quack.lv2"
101     ["GxPlexi.lv2"]="gx_plexi.lv2"
102     ["GxMicroAmp.lv2"]="gx_MicroAmp.lv2"
103     ["GxLuna.lv2"]="gx_luna.lv2"
104     ["GxLiquidDrive.lv2"]="gx_liquiddrive.lv2"
105     ["GxKnightFuzz.lv2"]="gx_KnightFuzz.lv2"
106     ["GxHyperion.lv2"]="gx_hyperion.lv2"
107     ["GxHotBox.lv2"]="gx_hotbox.lv2"
108     ["GxHeathkit.lv2"]="gx_Heathkit.lv2"
109     ["GxGuvnor.lv2"]="gx_guvnor.lv2"
110     ["GxFz1s.lv2"]="gx_maestro_fz1s.lv2"
111     ["GxFz1b.lv2"]="gx_maestro_fz1b.lv2"
112     ["GxEternity.lv2"]="gx_eternity.lv2"
113     ["GxEpic.lv2"]="gx_epic.lv2"
114     ["GxDOP250.lv2"]="gx_DOP250.lv2"
115     ["GxCreamMachine.lv2"]="gx_CreamMachine.lv2"
116     ["GxClubDrive.lv2"]="gx_clubdrive.lv2"
117     ["GxBottleRocket.lv2"]="gx_bottlerocket.lv2"
118     ["GxBoobTube.lv2"]="gx_boobtube.lv2"
119     ["GxBlueAmp.lv2"]="gx_blueamp.lv2"
120     ["GxBaJaTubeDriver.lv2"]="gx_bajatubedriver.lv2"
121     ["GxAxisFace.lv2"]="gx_AxisFace.lv2"
122   )
124   for _plugin_name in "${!_names[@]}"; do
125     lv2lint -Mpack -I $_name/$_plugin_name/${_names[$_plugin_name]}/ "$base_url/${_urls[$_plugin_name]}" || echo "https://github.com/brummer10/GxPlugins.lv2/issues/36"
126   done
129 package() {
130   make DESTDIR="$pkgdir" install -C $_name
131   install -vDm 644 $_name/README.md -t "$pkgdir/usr/share/doc/$pkgname/"