python/hypothesis: update to 6.121.0
[oi-userland.git] / components / text / hunspell-sv / Makefile
blob9d52db655ae7c6f16b3a01f13e70b431d6685cb6
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016 Alexander Pyhalov
13 # Copyright (c) 2023 Niklas Poslovski
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= hunspell-sv
19 COMPONENT_VERSION= 2.42
20 COMPONENT_PROJECT_URL= https://extensions.libreoffice.org/extension-center/swedish-spelling-dictionary-den-stora-svenska-ordlistan/
21 COMPONENT_SUMMARY= Myspell and Hunspell spell dictionary files for SWedish
22 COMPONENT_LICENSE= LGPLv3
23 COMPONENT_FMRI= library/myspell/dictionary/sv
24 COMPONENT_CLASSIFICATION = System/Localizations
26 COMPONENT_SRC= ooo-swedish-dict-2-42
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).oxt
28 COMPONENT_ARCHIVE_HASH= \
29 sha256:6f8c62461eb4c2cfe81628094c74ab6511918520047742f14e23dd440b99f45f
30 COMPONENT_ARCHIVE_URL= https://extensions.libreoffice.org/assets/downloads/z/$(COMPONENT_ARCHIVE)
32 UNPACK_ARGS+=-r $(COMPONENT_SRC)
34 include $(WS_MAKE_RULES)/prep.mk
35 include $(WS_MAKE_RULES)/ips.mk
37 DESTDIR=/usr/share/spell/hunspell
38 LINKDIR=/usr/share/spell/myspell
39 FFDIR=/usr/lib/firefox/dictionaries
40 TBDIR=/usr/lib/thunderbird/dictionaries
42 $(SOURCE_DIR)/.installed: $(SOURCE_DIR)/.prep
43 [ -d $(PROTO_DIR)$(DESTDIR) ] || mkdir -p $(PROTO_DIR)$(DESTDIR)
44 [ -d $(PROTO_DIR)$(LINKDIR) ] || mkdir -p $(PROTO_DIR)$(LINKDIR)
45 [ -d $(PROTO_DIR)$(FFDIR) ] || mkdir -p $(PROTO_DIR)$(FFDIR)
46 [ -d $(PROTO_DIR)$(TBDIR) ] || mkdir -p $(PROTO_DIR)$(TBDIR)
47 cp $(COMPONENT_SRC)/dictionaries/sv_FI.dic $(PROTO_DIR)$(DESTDIR)
48 cp $(COMPONENT_SRC)/dictionaries/sv_FI.aff $(PROTO_DIR)$(DESTDIR)
49 cp $(COMPONENT_SRC)/dictionaries/sv_SE.dic $(PROTO_DIR)$(DESTDIR)
50 cp $(COMPONENT_SRC)/dictionaries/sv_SE.aff $(PROTO_DIR)$(DESTDIR)
51 for file in `cd $(PROTO_DIR)/$(DESTDIR)/; ls`; do\
52 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(LINKDIR)/$$file; \
53 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(FFDIR)/$$file; \
54 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(TBDIR)/$$file; \
55 done
56 $(TOUCH) $@
58 build: $(SOURCE_DIR)/.prep
60 install: $(SOURCE_DIR)/.installed
62 clean::
63 $(RM) -r $(BUILD_DIR) $(PROTO_DIR)