2022-10-09 03:29:35 +03:00
|
|
|
pkgname=boring-backup
|
2022-10-09 03:58:46 +03:00
|
|
|
_pkgname=boring_backup
|
2022-10-09 03:29:35 +03:00
|
|
|
pkgver=0.1.0
|
|
|
|
pkgrel=1
|
2022-10-09 04:01:02 +03:00
|
|
|
pkgdesc="Bash powered backuping tool"
|
2022-10-09 03:29:35 +03:00
|
|
|
arch=(any)
|
|
|
|
url=https://git.nxhs.cloud/ge/boring_backup
|
|
|
|
license=(GPL3)
|
|
|
|
depends=(bash coreutils)
|
|
|
|
makedepends=(git make )
|
|
|
|
provides=('boring_backup')
|
|
|
|
conflicts=('boring_backup')
|
2022-10-09 03:58:46 +03:00
|
|
|
source=('git+https://git.nxhs.cloud/ge/boring_backup.git')
|
2022-10-09 03:29:35 +03:00
|
|
|
sha256sums=(SKIP)
|
|
|
|
build() {
|
2022-10-09 03:58:46 +03:00
|
|
|
cd "$srcdir/$_pkgname"
|
2022-10-09 03:29:35 +03:00
|
|
|
make prefix=dist/usr install
|
|
|
|
make prefix=dist/usr path=/usr/share/boring_backup fixpath
|
|
|
|
}
|
|
|
|
package() {
|
2022-10-09 03:58:46 +03:00
|
|
|
mkdir -p $pkgdir/usr/share/boring_backup/handlers/{sources,targets}
|
|
|
|
cd "$srcdir/$_pkgname"
|
2022-10-09 03:29:35 +03:00
|
|
|
install -Dm755 dist/usr/bin/boring_backup $pkgdir/usr/bin/boring_backup
|
|
|
|
install -Dm644 dist/usr/share/man/ru/man1/boring_backup.1.gz $pkgdir/usr/share/man/ru/man1/boring_backup.1.gz
|
|
|
|
install -Dm644 dist/usr/share/bash-completion/completions/boring_backup $pkgdir/usr/share/bash-completion/completions/boring_backup
|
|
|
|
install -Dm644 dist/usr/share/doc/boring_backup/boring_backup.1.html $pkgdir/usr/share/doc/boring_backup/boring_backup.1.html
|
2022-10-09 03:58:46 +03:00
|
|
|
install -Dm644 dist/usr/share/boring_backup/*.sh $pkgdir/usr/share/boring_backup
|
|
|
|
install -Dm644 dist/usr/share/boring_backup/handlers/sources/*.sh $pkgdir/usr/share/boring_backup/handlers/sources
|
|
|
|
install -Dm644 dist/usr/share/boring_backup/handlers/targets/*.sh $pkgdir/usr/share/boring_backup/handlers/targets
|
2022-10-09 03:29:35 +03:00
|
|
|
}
|