blob: a4adbb5d63ecd15f9c84a526af305cee9cba2572 (
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
|
# Maintainer: Phillip Schichtel <phillip.public@schich.tel>
pkgname=ssync
pkgver='1.0.2'
pkgrel=2
pkgdesc='ssync (system sync) is a symlinking git wrapper for [config] files.'
arch=(any)
url="https://github.com/n2code/${pkgname}"
license=('MIT')
depends=('git>=2.0.0' 'rsync>=3.0.0' 'coreutils' 'bash>=4.0.0')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=(e6e49d9cba2c7bab2160724ecc1685e72b5501c9da8eb332c145ac5634866362)
backup=("etc/${pkgname}.conf")
package() {
extracted_src="${srcdir}/${pkgname}-${pkgver}"
cp -dpr --no-preserve=ownership "${extracted_src}/usr" "${pkgdir}"
licensedir="${pkgdir}/usr/share/licenses/${pkgname}"
install -dm755 "$licensedir"
cp -p --no-preserve=ownership "${extracted_src}/LICENSE" "$licensedir"
install -dm755 "${pkgdir}/etc"
cp -p --no-preserve=ownership "${extracted_src}/usr/share/${pkgname}/${pkgname}.conf.template" \
"${pkgdir}/etc/${pkgname}.conf"
libdir="${pkgdir}/var/lib"
install -dm755 "$libdir"
repodir="${libdir}/${pkgname}"
install -dm711 "$repodir"
}
|