blob: 86928b992f22820e09373193c631bf266c3c1d02 (
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
|
# Mantenedor: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>
pkgname=gitsync
pkgver=0.0.26
pkgrel=1
pkgdesc="GitSyncMaster: Effortlessly Automate Git Repository Updates, Including Committing and Pulling, Across Directory Structures."
arch=('x86_64')
url="https://github.com/felipealfonsog/GitSyncMaster"
license=('BSD 3-Clause')
depends=('python')
source=("https://github.com/felipealfonsog/GitSyncMaster/archive/refs/tags/v.${pkgver}.tar.gz")
sha256sums=('e683510cbad54f75f8ad994cb6fd7f809a4710298822b73b8e76ce736153f3b0')
prepare() {
tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1
}
package() {
# Install the script - Python
install -Dm755 "$srcdir"/GitSyncMaster-v."${pkgver}"/src/src-std/gitsync.py "${pkgdir}/usr/local/bin/gitsync.py"
# Create a shell script to execute it and copy it to /usr/local/bin.
echo '#!/bin/bash' > gitsync
echo 'python /usr/local/bin/gitsync.py "$@"' >> gitsync
chmod +x gitsync
install -Dm755 gitsync "${pkgdir}/usr/local/bin/gitsync"
}
|