~sircmpwn/sr.ht-pkgbuilds

ref: 6b8072d77772924006558a1c928f247f5edff9ee sr.ht-pkgbuilds/hub.sr.ht/PKGBUILD -rw-r--r-- 928 bytes
6b8072d7Eli Schwartz python-zxcvbn: remove as it is overridden in [community] 10 months ago
                                                                                
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
pkgname=hub.sr.ht
pkgver=0.11.15
pkgrel=1
pkgdesc="SourceHut project hub"
arch=('any')
url="https://git.sr.ht/~sircmpwn/$pkgname"
license=('AGPL3')
depends=('python-srht')
makedepends=('nodejs' 'sassc' 'go')
install=hub.sr.ht.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
        "$pkgname.service"
        "sysusers.conf")
sha256sums=('83d35801a2b5b8faf1211c61cb9b3e1aac7b88471ad6a79d0174f361d47b88ea'
            '3de78b1220fcfd6bd293f8caa6c8f6e9e4a9b0757b6cd614b5c4869613ec0959'
            '2ef86c4fddee7cb98af57ef725d393edbda2c2f2cb34c70000a59938510a54ee')
export PKGVER=$pkgver

build() {
    cd $pkgname-$pkgver
    python3 setup.py build
}

package() {
    cd $pkgname-$pkgver
    install -Dm0644 ../$pkgname.service -t "$pkgdir"/usr/lib/systemd/system/
    install -Dm0644 ../sysusers.conf "$pkgdir"/usr/lib/sysusers.d/$pkgname.conf
    python3 setup.py install --root="$pkgdir" --optimize=1
}