# Maintainer: Shalygin Konstantin # Co-Maintainer: xiretza # Contributor: Shalygin Konstantin pkgname='pgbackrest' pkgver='2.50' pkgrel='1' pkgdesc='Reliable PostgreSQL Backup & Restore' arch=('x86_64') url="https://github.com/${pkgname}/${pkgname}" license=('MIT') depends=('openssl' 'libxml2' 'icu' 'gcc-libs' 'bzip2' 'lz4' 'xz' 'zstd' 'perl' 'postgresql-libs') makedepends=('libyaml') source=("$pkgname-$pkgver.tar.gz::${url}/archive/release/${pkgver}.tar.gz") sha256sums=('e6750691845c8f32f499bb7e8cac6f6952770420f030baca08459ac1292eeabe') backup=("etc/${pkgname}/${pkgname}.conf") prepare() { cd "${pkgname}-release-${pkgver}/src" ./configure \ --prefix="/usr" } build() { cd "${pkgname}-release-${pkgver}/src" make } package() { cd "${pkgname}-release-${pkgver}/src" make DESTDIR="${pkgdir}" install mkdir -p "${pkgdir}/etc/${pkgname}" echo "# Placeholder configuration file" > "${pkgdir}/etc/${pkgname}/${pkgname}.conf" echo "# See the documentation at https://${pkgname}.org/configuration.html" >> \ "${pkgdir}/etc/${pkgname}/${pkgname}.conf" install -Dm0644 "../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }