apkbuilds @ 686604647cfc3df98eb94b759166b2b1c83db7d8

feat: Add initial commit to build midr
  1diff --git a/midr/APKBUILD b/midr/APKBUILD
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..a9b1b94bb4a8b6f0784f636ac0a18e641b44800c
  4--- /dev/null
  5+++ b/midr/APKBUILD
  6@@ -0,0 +1,49 @@
  7+# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
  8+pkgname=midr
  9+pkgver=0.1.0
 10+pkgrel=0
 11+pkgdesc="yt-dlp simple frontend"
 12+url="https://git.sr.ht/~gabrielgio/midr"
 13+arch="x86_64"
 14+license="MIT"
 15+makedepends="
 16+    go
 17+"
 18+builddir="$srcdir/$pkgname-v$pkgver/"
 19+install="$pkgname.pre-install $pkgname.post-install"
 20+subpackages="$pkgname-openrc"
 21+source="
 22+    ${pkgname}-${pkgver}.tar.gz::https://artifacts.gabrielgio.me/${pkgname}/${pkgname}-v${pkgver}.tar.gz
 23+	midr.initd
 24+	midr.confd
 25+"
 26+
 27+build() {
 28+    go mod vendor
 29+    go build \
 30+			-trimpath \
 31+			-mod=vendor \
 32+            -ldflags="-X 'main.Version=${pkgver}'" \
 33+            .
 34+}
 35+
 36+check() {
 37+	# Replace with proper check command(s)
 38+	:
 39+}
 40+
 41+package() {
 42+
 43+	install -Dm755 "$pkgname" "$pkgdir"/usr/bin/"$pkgname"
 44+
 45+	install -m755 -D "$srcdir"/$pkgname.initd \
 46+		"$pkgdir"/etc/init.d/$pkgname
 47+	install -m644 -D "$srcdir"/$pkgname.confd \
 48+		"$pkgdir"/etc/conf.d/$pkgname
 49+}
 50+
 51+sha512sums="
 52+4b170b6466bdc4da60cf6582ab43ffb55ea09ccef58490453377d07fe38996c0d1a4408c5c68d2f3ab75f607afce443fb86ae5d6c04f7a9be844bf870064c075  midr-0.1.0.tar.gz
 53+512331fd6b4c5621c14b8bf07a94b2318dc33fea245de1e66d6385e1dc4cbfde7cb0d53507b46c85a11defe65a936cca40ace80df76130c7af2ef5999899892c  midr.initd
 54+f11f0d192cd7823307c2ce4ddc7b3fff5190f72d3f65a5524b487021a95a222aca1fd36ab1eb58ed533e7acd555bfb70f0c8a13db20338ea31527f3151fd2bd7  midr.confd
 55+"
 56diff --git a/midr/midr.confd b/midr/midr.confd
 57new file mode 100644
 58index 0000000000000000000000000000000000000000..486252b03c72da72c88db661d71c4d36f5b9e16d
 59--- /dev/null
 60+++ b/midr/midr.confd
 61@@ -0,0 +1,7 @@
 62+# Sample conf.d file for alpine linux
 63+
 64+#
 65+# Specify daemon options here.
 66+#
 67+
 68+sample_opts=""
 69diff --git a/midr/midr.initd b/midr/midr.initd
 70new file mode 100644
 71index 0000000000000000000000000000000000000000..0dc706ce27dbcf80bf504fd41a03973cf6fd6eb5
 72--- /dev/null
 73+++ b/midr/midr.initd
 74@@ -0,0 +1,16 @@
 75+#!/sbin/openrc-run
 76+
 77+# Sample init.d file for alpine linux.
 78+
 79+name=
 80+command="/usr/sbin/$name"
 81+command_args="$sample_opts"
 82+command_background="yes"
 83+
 84+start_stop_daemon_args="--user $sample_user:$sample_group"
 85+pidfile="/run/$name.pid"
 86+
 87+depend() {
 88+	need net
 89+	after firewall
 90+}
 91diff --git a/midr/midr.post-install b/midr/midr.post-install
 92new file mode 100644
 93index 0000000000000000000000000000000000000000..512fd3e839c3d2b644aeff2a0cb61db5d55ea560
 94--- /dev/null
 95+++ b/midr/midr.post-install
 96@@ -0,0 +1,4 @@
 97+#!/bin/sh
 98+
 99+# add something which happens after install
100+
101diff --git a/midr/midr.pre-install b/midr/midr.pre-install
102new file mode 100644
103index 0000000000000000000000000000000000000000..20f04f77aa4ed2596eae0fe7a09cf3c095f72e16
104--- /dev/null
105+++ b/midr/midr.pre-install
106@@ -0,0 +1,4 @@
107+#!/bin/sh
108+
109+# add something which happens before install
110+