-
Notifications
You must be signed in to change notification settings - Fork 4
/
weechat-relay.cygport.in
125 lines (112 loc) · 3.59 KB
/
weechat-relay.cygport.in
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#
# Copyright (C) 2019-2024 Sébastien Helleu <[email protected]>
#
# This file is part of WeeChat Relay.
#
# WeeChat Relay is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat Relay is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat Relay. If not, see <https://www.gnu.org/licenses/>.
#
#
# This file is used to build Cygwin packages using the "cygport" command.
#
# It must be used *ONLY* for a stable release (version "X.Y.Z"),
# not for a development version (version "X.Y.Z-dev" or "X.Y.Z-rcN").
#
# Instructions:
#
# 1. install asciidoctor (to build man page/docs):
#
# $ gem install -n /usr/local/bin asciidoctor
#
# 2. execute these commands inside your build directory, after running cmake
# or configure script (replace X.Y.Z by WeeChat Relay version):
#
# $ cygport weechat-relay-X.Y.Z-1.cygport fetch
# $ cygport weechat-relay-X.Y.Z-1.cygport almostall
#
# Packages are built in directory: ./weechat-relay-X.Y.Z-1.<arch>/dist/weechatrelay/
#
inherit cmake
NAME="weechatrelay"
VERSION=@VERSION@
RELEASE=1
# Default category (some packages have extra category)
CATEGORY="Libs"
HOMEPAGE="https://weechat.org/"
SRC_URI="https://weechat.org/files/src/weechat-relay-${VERSION}.tar.xz"
# Build dependencies only
DEPEND="cmake libgnutls-devel pkg-config zlib-devel"
#
# CMake compilation of WeeChat Relay:
# 1. set prefix to /usr
# 2. enable build of:
# - command-line client
# - man pages
# - documentation
#
CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DBUILD_CLI=ON -DBUILD_DOC=ON \
-DBUILD_MAN=ON"
PKG_IGNORE="etc/postinstall/${PN}.sh"
#
# Build 4 Cygwin packages:
# weechatrelay
# libweechatrelay
# libweechatrelay-devel
# libweechatrelay-doc
#
PKG_NAMES="weechat-relay ${PN} ${PN}-devel ${PN}-doc"
PKG_HINTS="setup devel doc"
#
# Package "weechatrelay": CLI test program
#
weechatrelay_SUMMARY="Command-line interface to the WeeChat Relay library"
weechatrelay_DESCRIPTION="Command-line interface to the WeeChat Relay \
library, which can be used for tests, debug or in shell scripts."
weechatrelay_CONTENTS="
usr/bin/weechat-relay-cli
usr/share/icons/
usr/share/man/
"
#
# Package "libweechatrelay": Implementation of WeeChat Relay protocol
#
libweechatrelay_SUMMARY="Implementation of WeeChat Relay protocol"
libweechatrelay_DESCRIPTION="WeeChat Relay is a C library to communicate \
between WeeChat and a client using the \"weechat\" relay protocol."
libweechatrelay_CONTENTS="
usr/lib/libweechatrelay.dll
usr/share/doc/weechat/AUTHORS.md
usr/share/doc/weechat/CHANGELOG.md
usr/share/doc/weechat/CONTRIBUTING.md
usr/share/doc/weechat/COPYING
usr/share/doc/weechat/README.md
usr/share/doc/weechat/UPGRADING.md
"
libweechatrelay_REQUIRES="weechat"
#
# Package "libweechatrelay-devel": WeeChat Relay development files
#
weechat_devel_CATEGORY="Libs Devel"
weechat_devel_SUMMARY="WeeChat Relay development files"
weechat_devel_CONTENTS="
usr/include/
usr/lib/pkgconfig/
"
#
# Package "weechatrelay-doc": WeeChat Relay documentation
#
weechat_doc_CATEGORY="Libs Doc"
weechat_doc_SUMMARY="Documentation for WeeChat Relay"
weechat_doc_CONTENTS="
usr/share/doc/weechat-relay/*.html
"