aboutsummaryrefslogtreecommitdiffstats
path: root/community/prosody-filer/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/prosody-filer/APKBUILD')
-rw-r--r--community/prosody-filer/APKBUILD35
1 files changed, 15 insertions, 20 deletions
diff --git a/community/prosody-filer/APKBUILD b/community/prosody-filer/APKBUILD
index f69ed212f7d..f9bf73072e3 100644
--- a/community/prosody-filer/APKBUILD
+++ b/community/prosody-filer/APKBUILD
@@ -1,33 +1,33 @@
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=prosody-filer
-pkgver=1.0.2
-pkgrel=2
+pkgver=1.0.3
+pkgrel=1
pkgdesc="Golang mod_http_upload_external server for Prosody and Ejabberd"
url="https://github.com/ThomasLeister/prosody-filer"
arch="all"
license="MIT"
makedepends="go"
-options="!check" # tests are broken
+options="chmod-clean net"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/ThomasLeister/prosody-filer/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
- go.mod
- go.sum
-"
+ "
-export GOPATH="$srcdir/go"
+export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
+export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
+export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
-prepare() {
- default_prepare
- cp "$srcdir"/go.mod "$srcdir"/go.sum .
+build() {
+ go build
}
-build() {
- go build -v
+check() {
+ mv config.example.toml config.toml
+ go test ./...
}
package() {
@@ -36,13 +36,8 @@ package() {
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
-cleanup_srcdir() {
- go clean -modcache
- default_cleanup_srcdir
-}
-
-sha512sums="8bf3d3d2c8add7cfdfbe4dd1294ac6e1a14e48ad5927e700bbbbe1e06a16a754ecd4a2228dff1fd8be57ef29602631d8c1e9085073625ee9734e5eaf0324ba28 prosody-filer-1.0.2.tar.gz
+sha512sums="
+6b030f91cd01b7a2c577f93394183bdbbef08c94f9c0111b12b715e5d024e0fea628e47073ac604af2835e6016e21f98cac99efb8cec6ad22d114130f76ea42f prosody-filer-1.0.3.tar.gz
1460dd00df99fe8dc04f42c65731c6b002ac5a2c5dcd73af598f2a3c6d8befa5ff1d910b5417477a3c79efc5065e609621eab6919f93c3bef34169264939929f prosody-filer.initd
d2ca3f7801bbf6252b3ee739aff79460ec76dbc0798ea8995d0f2b684d85347685ae3b7f2cc4cf186ad1c889fd79bc267f57f9c6c120f491afe943bf725e4abd prosody-filer.confd
-a2a51c00067a489a96ae2b496166cab5fed41a2a404df4e7b89aaf5afbc325fe687f6ebead7d793f0bd0f1c8ce7708b95842f50078db3631b3bfc017939afbce go.mod
-8fd7594aa7e9a7acd542c9df230c9063742e397126f1c92c5d4d6a142bb4a4f87eb0fb910f6321044d6490cfcf1e15bad8e24c714e4d01c449e0f5cfee974094 go.sum"
+"