1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/APKBUILD

37 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-03-09 22:10:50 +03:00
# Contributor: Johannes Krattenmacher <maloja@dev.krateng.ch>
# Maintainer: Johannes Krattenmacher <maloja@dev.krateng.ch>
pkgname=maloja
2022-03-09 23:53:42 +03:00
pkgver=3.0.0-dev
2022-03-09 22:10:50 +03:00
pkgrel=0
2022-03-09 23:53:42 +03:00
pkgdesc="Self-hosted music scrobble database"
2022-03-09 22:10:50 +03:00
url="https://github.com/krateng/maloja"
arch="noarch"
license="GPL-3.0"
2022-03-10 00:02:42 +03:00
depends="python3 tzdata"
2022-03-09 22:10:50 +03:00
pkgusers=$pkgname
pkggroups=$pkgname
2022-03-10 09:11:39 +03:00
depends_dev="gcc g++ python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers"
2022-03-09 22:10:50 +03:00
makedepends="$depends_dev"
source="
2022-03-09 23:53:42 +03:00
$pkgname-$pkgver.tar.gz::https://github.com/krateng/maloja/archive/refs/tags/v$pkgver.tar.gz
2022-03-09 22:10:50 +03:00
"
2022-03-09 23:53:42 +03:00
builddir="$srcdir"/$pkgname-$pkgver
2022-03-09 22:10:50 +03:00
build() {
cd $builddir
python3 -m build .
pip3 install dist/*.tar.gz
}
package() {
2022-03-09 23:53:42 +03:00
mkdir -p /etc/$pkgname || return 1
mkdir -p /var/lib/$pkgname || return 1
mkdir -p /var/cache/$pkgname || return 1
mkdir -p /var/logs/$pkgname || return 1
2022-03-09 22:10:50 +03:00
}
2022-03-09 23:53:42 +03:00
# TODO
sha512sums="a674eaaaa248fc2b315514d79f9a7a0bac6aa1582fe29554d9176e8b551e8aa3aa75abeebdd7713e9e98cc987e7bd57dc7a5e9a2fb85af98b9c18cb54de47bf7 $pkgname-${pkgver}.tar.gz"