blob: c05f99a4c784cf1ebb4f35fb6b1d24296beb3327 (
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.24
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=('16027e69ab306580102bf072f39efc14828d2c93c94cc2f6f5f4880b80e2d96a')
prepare() {
tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1
}
package() {
# Install the script - Python
install -Dm755 "$srcdir"/GitSyncMaster-v."${pkgver}"/src/aur-dev/git_updater.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"
}
|