blob: b198fc72bea10896c133a19ed9632eeeb6f9574d (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: XMgVwrR6jCWDM75
_gitname="torrents.csv"
_gitver="0"
_gitbranch="master"
pkgname="torrents.csv-git"
pkgver=0.r1.681bb2f
pkgrel=1
pkgdesc="Torrents.csv is a self hostable, open source torrent search site and database"
arch=(any)
url="https://gitlab.com/dessalines/torrents.csv"
license=('GPL3')
groups=()
depends=('rust'
'yarn'
'sqlite'
'jq'
'ripgrep')
makedepends=('git'
'npm'
'nodejs')
optdepends=()
provides=('torrents.csv')
replaces=()
backup=()
options=('!strip')
changelog=
source=("git+https://gitlab.com/dessalines/torrents.csv.git")
sha256sums=('SKIP')
pkgver() {
cd "${_gitname}"
printf "%s.r%s.%s" "${_gitver}" "$(git rev-list --count ${_gitbranch})" "$(git rev-parse --short ${_gitbranch})"
}
prepare() {
:
}
build() {
sed -i '7 a cd /opt/torrents.csv/scripts' torrents.csv/scripts/webserver.sh
}
package() {
install -d ${pkgdir}/opt/torrents.csv
rm -rf ${_gitname}/.git
cp -R ${_gitname} ${pkgdir}/opt/
}
|