1diff --git a/apks/jnfilter/APKBUILD b/apks/jnfilter/APKBUILD
2new file mode 100644
3index 0000000000000000000000000000000000000000..cf9c6fd5b6ad0a81bdf241e98bb844839ae0034c
4--- /dev/null
5+++ b/apks/jnfilter/APKBUILD
6@@ -0,0 +1,57 @@
7+# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
8+pkgname=jnfilter
9+pkgver=0.1.0
10+pkgrel=5
11+pkgdesc="Filtro for Joven Nerd's podcast feed"
12+url="https://git.sr.ht/~gabrielgio/jnfilter"
13+arch="noarch"
14+license="Apache-2.0"
15+options="!check" # package does not provide test
16+depends="
17+ python3
18+ py3-httpx
19+ py3-flask
20+ py3-gunicorn
21+"
22+makedepends="python3-dev "
23+builddir="$srcdir/$pkgname-$pkgver"
24+subpackages="
25+ $pkgname-openrc
26+ $pkgname-nginx:_nginx:noarch
27+"
28+source="
29+ $pkgname-$pkgver.tar.gz::https://artifacts.gabrielgio.me/archive/$pkgname/$pkgname-$pkgver.tar.gz
30+ $pkgname.initd
31+ $pkgname.nginx.conf
32+ $pkgname.confd
33+"
34+provides="py3-jnfilter=$pkgver-r$pkgrel"
35+
36+
37+build() {
38+ python3 setup.py build
39+}
40+
41+_nginx() {
42+ depends="nginx jnfilter"
43+ pkgdesc="nginx configuration for $pkgname"
44+ install -Dm644 "$srcdir"/"$package"/"$pkgname".nginx.conf \
45+ "$subpkgdir"/etc/nginx/http.d/"$pkgname".nginx.conf
46+}
47+
48+package() {
49+ # install scripts
50+ install -m755 -D "$srcdir"/$pkgname.initd \
51+ "$pkgdir"/etc/init.d/$pkgname
52+ install -m644 -D "$srcdir"/$pkgname.confd \
53+ "$pkgdir"/etc/conf.d/$pkgname
54+
55+ python3 setup.py install --prefix=/usr --root="$pkgdir"
56+}
57+
58+sha512sums="
59+7af506e023cd1db5b18c4026e8d299852ea8baee6dacb29786ba334da0bc7e25de86352c11c08b8aa4207ab3dc07cfaa9eac4484aa446e816ee47406d3e03e03 jnfilter-0.1.0.tar.gz
60+4e9afb1c25218e78aa9ce033c76689613c55eeab2c3b460476ee64375c50b83f99e98ce504c9a9485ae55e186d02eb5d38715100343a8b59cab0f14aa7fa2346 jnfilter.initd
61+7edf3d3932a8af82aa5140523c517da2d697e10c197b784bd9d370baddccb66c25a67c4e2b1d64f7521e818258348e3153168256572ab5bc1b0f0bc73ffe6944 jnfilter.nginx.conf
62+00142d4a156bba4b714c2488674a53f82a95cbfd073aede159011de5aca415fe51481eee2bd225e376fd9cdf66ba95faa76beb038c896b6148454f940a58fffd jnfilter.confd
63+"
64diff --git a/apks/jnfilter/jnfilter.confd b/apks/jnfilter/jnfilter.confd
65new file mode 100644
66index 0000000000000000000000000000000000000000..d446d70259a227c3ff7826e75799036e9d5935fe
67--- /dev/null
68+++ b/apks/jnfilter/jnfilter.confd
69@@ -0,0 +1,3 @@
70+port=32000
71+host=127.0.0.1
72+workers=2
73diff --git a/apks/jnfilter/jnfilter.initd b/apks/jnfilter/jnfilter.initd
74new file mode 100644
75index 0000000000000000000000000000000000000000..83c7a9704dc3f604bcf24907f908727a9993dc1a
76--- /dev/null
77+++ b/apks/jnfilter/jnfilter.initd
78@@ -0,0 +1,17 @@
79+#!/sbin/openrc-run
80+supervisor="supervise-daemon"
81+
82+name="jnfilter"
83+command="/usr/bin/gunicorn"
84+command_args="
85+ -w ${workers}
86+ -b ${host}:${port}
87+ jnfilter:app
88+"
89+command_background="yes"
90+
91+pidfile="/run/$RC_SVCNAME.pid"
92+
93+depend() {
94+ use net
95+}
96diff --git a/apks/jnfilter/jnfilter.nginx.conf b/apks/jnfilter/jnfilter.nginx.conf
97new file mode 100644
98index 0000000000000000000000000000000000000000..2f4672ec9491136f6b024d0b57f838bd16cd4679
99--- /dev/null
100+++ b/apks/jnfilter/jnfilter.nginx.conf
101@@ -0,0 +1,8 @@
102+server {
103+ server_name jnfilter.lan;
104+ access_log /var/log/nginx/jnfilter.log main;
105+
106+ location / {
107+ proxy_pass http://localhost:32000;
108+ }
109+}