mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
37 lines
1.0 KiB
Django/Jinja
37 lines
1.0 KiB
Django/Jinja
# Contributor: Johannes Krattenmacher <maloja@dev.krateng.ch>
|
|
# Maintainer: Johannes Krattenmacher <maloja@dev.krateng.ch>
|
|
pkgname={{ tool.flit.module.name }}
|
|
pkgver={{ project.version }}
|
|
pkgrel=0
|
|
pkgdesc="{{ project.description }}"
|
|
url="{{ project.urls.homepage }}"
|
|
arch="noarch"
|
|
license="GPL-3.0"
|
|
depends="{{ tool.osreqs.alpine.run | join(' ') }}"
|
|
pkgusers=$pkgname
|
|
pkggroups=$pkgname
|
|
depends_dev="{{ tool.osreqs.alpine.build | join(' ') }}"
|
|
makedepends="$depends_dev"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::{{ project.urls.repository }}/archive/refs/tags/v$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
|
|
|
|
build() {
|
|
cd $builddir
|
|
python3 -m build .
|
|
pip3 install dist/*.tar.gz
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|
|
|
|
# TODO
|
|
sha512sums="a674eaaaa248fc2b315514d79f9a7a0bac6aa1582fe29554d9176e8b551e8aa3aa75abeebdd7713e9e98cc987e7bd57dc7a5e9a2fb85af98b9c18cb54de47bf7 $pkgname-${pkgver}.tar.gz"
|