~sircmpwn/sr.ht-pkgbuilds

ref: f6f509861162091ec4764c075bf9bd24924d3ded sr.ht-pkgbuilds/hub.sr.ht/PKGBUILD -rw-r--r-- 927 bytes
f6f50986Eli Schwartz pkgrel bump all remaining packages that still need to be rebuilt for py3.10 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.14.4
pkgrel=2
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=('6d20220667395318796bc3bad15e92bacd481ffa157bbcc8a94c7328ce214fc8'
            '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
}