blob: babcc24032842290521c0269689db10d09c81bf4 (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import shutil
class Recipe(recipe.Recipe):
name = 'ladspa'
version = '1.15'
licenses = [License.LGPLv2_1Plus]
btype = BuildType.CUSTOM
stype = SourceType.TARBALL
# Upstream has a bad habit of deleting source tarballs, mirror to fdo on bump
url = 'https://www.ladspa.org/download/ladspa_sdk_%(version)s.tgz'
tarball_dirname = 'ladspa_sdk_%(version)s'
tarball_checksum = '4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded'
files_devel = ['include/ladspa.h']
library_type = LibraryType.NONE
def prepare(self):
if self.config.distro == Distro.MSYS2:
self.force_tarfile = True
async def install(self):
include_path = os.path.join(self.config.prefix, 'include')
if not os.path.exists(include_path):
os.makedirs(include_path)
ladspa_h = os.path.join(self.build_dir, 'src', 'ladspa.h')
shutil.copy(ladspa_h, include_path)
|