summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1956d32fdf7bbcc07f27056bb6ce8dbda417c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Benjamin A. Shelton <zancarius@gmail.com>
# Source: https://github.com/zancarius/archlinux-pkgbuilds

pkgname=snuba
pkgver=23.3.1
pkgrel=2
pkgdesc="a service that provides a rich data model on top of Clickhouse"
arch=(any)
url="https://github.com/getsentry/snuba"
license=(BSD)
makedepends=(
    'python-pip'
    'python-setuptools'
)

depends=(
    'python'
)

options=(!strip)
source=(snuba-devserver.service)
sha256sums=('52fcea894f35a7c960e1e25cd015268679fe54cbcaf2038df595925ee16a486c')

package() {
    mkdir -p "${pkgdir}/opt/sentry"
    pip install --isolated --root="$pkgdir"/opt/snuba --ignore-installed \
        "setuptools" \
        "https://github.com/getsentry/snuba/archive/refs/tags/$pkgver.tar.gz"

    mkdir -p "${pkgdir}/opt/snuba/.python-eggs"
    find "${pkgdir}" -name '.DS_Store' -delete

    install -Dm0644 "${srcdir}/snuba-devserver.service" "${pkgdir}/usr/lib/systemd/system/snuba-devserver.service"
}