# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

pkgname=dbscripts
pkgver=20260106
pkgdesc='Server-side programs for Parabola Pacman repositories'
url='https://git.parabola.nu/packages/dbscripts.git/'
license=('GPL-3.0-or-later')
backup=(
	etc/$pkgname/config
	etc/$pkgname/config.local
	etc/$pkgname/config.local.archlinux32
	etc/$pkgname/config.local.archlinuxarm
	etc/$pkgname/config.local.import-ourarches
	etc/$pkgname/config.local.packages
	etc/$pkgname/config.local.parabola
	etc/$pkgname/db-cleanup.conf
	etc/$pkgname/db-import-any.conf
	etc/$pkgname/db-import-archlinuxarm.conf
	etc/$pkgname/db-import-keyring.conf
	etc/$pkgname/torrent.conf
)

pkgrel=1
arch=('any')
depends=(expac mktorrent rsync librelib)
makedepends=(git)
source=("git+https://git.parabola.nu/packages/dbscripts.git#tag=parabola/${pkgver}")
sha256sums=('ffbdf50dbea30b606aae85ce16e5e631c99565fab0ee2d8a6c3267c91fa7411e')

package() {
	cd "$pkgname"
	make install DESTDIR="$pkgdir"
}
