summaryrefslogtreecommitdiff
path: root/pcr/prosody-modules-hg/PKGBUILD
blob: eb59012eeb878e1d467f99d0f300a246d0766442 (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
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
# Copyright (C) 2022 Wael Karram <wael@waelk.tech>
# SPDX-License-Identifier: CC0-1.0
# Maintainer: Wael Karram <wael@waelk.tech>


# NOTE: The prosody-modules repository does not version nor make releases;
#       so we use a date, and pin it to 'prosody' releases for compatibility.


pkgname=prosody-modules-hg
pkgver=20231108
_upstream_rev=5579
_prosody_ver=0.12.4
pkgrel=1
pkgdesc="Prosody community modules, includes experimental ones."
arch=('any')
url="https://modules.prosody.im/"
license=('MIT')
depends=(prosody=1:${_prosody_ver})
makedepends=('mercurial')
mksource=(${pkgname}-${pkgver}::hg+https://hg.prosody.im/prosody-modules/#revision=${_upstream_rev})
source=(https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.xz{,.sig})
mksha256sums=('SKIP')
sha256sums=('cdcb013ff825dccbdcb5a8ec43493549236b901c7608a7a560e717045d9cb330' 'SKIP')
validpgpkeys=('3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40') # bill-auger


mksource() {
	cd "${srcdir}/${pkgname}-${pkgver}/"
	# Clean up mercurial files.
	rm -rf \.hg \.hgtags

	# Seems to download external dependencies, needs inspection.
	rm -rf mod_admin_web

	# Unmaintained and shouldn't be used.
	rm -rf mod_auth_external_insecure

	# Connects to AWS.
	rm -rf mod_aws_profile

	# Depricated, might conflict with built-in module.
	rm -rf mod_bookmarks

	# Requires modification to prosody core.
	rm -rf mod_captcha_registrations

	# Unsafe and unmaintained.
	rm -rf mod_compression_unsafe

	# Relies on conversejs' CDN, free software though.
	rm -rf mod_conversejs

	# Seems abandoned.
	rm -rf mod_couchdb

	# Deprecated.
	rm -rf mod_easy_invite

	# Integrated into core prosody software.
	rm -rf mod_graceful_shutdown

	# Seems to include unlicensed code.
	rm -rf mod_pubsub_feeds

	# Relies on github network services.
	rm -rf mod_pubsub_github

	# relies on twitter network services and API.
	rm -rf mod_pubsub_twitter

	# Monkeysphere project seems to be defunct.
	rm -rf mod_s2s_auth_monkeysphere

	# Relies on nonfree network services.
	rm -rf mod_s2s_auth_posh

	# Relies on nonfree network services.
	rm -rf mod_sentry

	# relies on nonfree network services.
	rm -rf mod_slack_webhooks

	# Relies on nonfree network services.
	rm -rf mod_sms_clickatel

	# Relies on nonfree network services.
	rm -rf mod_sms_free

	# Relies on nonfree network services.
	rm -rf mod_tweet_data

	# Relies on nonfree network services and unfinished/unmaintained.
	rm -rf mod_twitter
}

package() {
	# Make sure that the modules path exists.
	mkdir -p "${pkgdir}/usr/lib/prosody/modules/"
	# Copy the modules.
	cp -r "${srcdir}/${pkgname}-${pkgver}/" "${pkgdir}/usr/lib/prosody/modules/"
}