blob: 82b1ebb917eb1efb735e6147aaf98dbc893411bf (
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
35
36
37
|
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
pkgname='snac'
pkgver='2.67'
pkgrel='1'
pkgdesc="A simple, minimalistic ActivityPub instance"
url="https://codeberg.org/grunfink/${pkgname}2"
license=('MIT')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
depends=('libcurl.so')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::https://codeberg.org/grunfink/${pkgname}2/archive/${pkgver}.tar.gz"
"${pkgname}.install"
"${pkgname}-system.service"
"${pkgname}-user.service")
b2sums=('140345c3f9ab51585326f57a1dc9e4e19ea53e8a861279c6340a9e7b9e925789e0a25f4784054d3b7ee977be77a5fee22a4fbd4cba731f3cdefd2854b36c4452'
'f2ca53f40c9ea2e82a63c0437272dfbb9636a27b23752253832ed67b2cc7f806a289851339f6505eb265a4b84a02b5fe16c031d40e0aa62446dafe183a61f20d'
'5378f76bd65ca03b7edc9d3e61156ef027dbf9e1ce7612bed129d37d63fd0a95203db96e246714512a4ed0c363cc60f3d29302c8ef4a7970fd88e05039858da8'
'7a34944bb8f001a194123a0fee5ce3077c29e15059e1e558465641dad57dcbf685c6a1a8c913d372b2af2fbddd7d6dbc48cbafdfac3b24aa038ecbbf1e513465')
build() {
cd "${pkgname}2"
make
}
package() {
# services
install -D -m644 ${pkgname}-system.service \
"${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -D -m644 ${pkgname}-user.service \
"${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
# package
cd "${pkgname}2"
make PREFIX="${pkgdir}/usr" PREFIX_MAN="${pkgdir}/usr/share/man" install
# license
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|