blob: 048aa70e5ebdfb09ca868c5a47ea6a8b18e21f0c (
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
|
# Maintainer: Mads Ravn <https://github.com/madsravn>
# Maintainer: Lenin Garizabalo <https://github.com/IGUNUBLUE/>
pkgname=relagit
pkgver=r1081.78fc85e
pkgrel=1
pkgdesc="The elegant solution to graphical version control."
arch=("x86_64")
url="https://github.com/relagit/relagit"
license=("GNU Lesser General Public License v3.0")
provides=("RelaGit")
source=("git+$url.git")
sha256sums=('SKIP')
depends=('nodejs>=18.0'
'pnpm'
'git')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
sed -i "121 c\ target: []," builder.cjs
pnpm i
pnpm build
pnpm make
}
package() {
install -Dm 755 "${srcdir}/${pkgname}/out/linux-unpacked/relagit" "${pkgdir}/opt/relagit/relagit"
cp -r "${srcdir}/${pkgname}"/out/linux-unpacked/* "${pkgdir}/opt/relagit"
echo "/opt/relagit/relagit" > relagit.sh
install -Dm 755 relagit.sh "${pkgdir}/usr/bin/relagit"
}
|