jobcore/logrotate/PKGBUILD

62 lines
1.8 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=logrotate
pkgver=3.22.0
pkgrel=01
pkgdesc="Rotates system logs automatically w/o systemd"
url="https://github.com/logrotate/logrotate"
depends=('popt' 'gzip' 'acl')
backup=('etc/logrotate.conf')
source=("https://github.com/logrotate/logrotate/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
'logrotate.conf')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--mandir=/usr/share/man \
--with-compress-command=/usr/bin/gzip \
--with-uncompress-command=/usr/bin/gunzip \
--with-default-mail-command=/usr/bin/mail \
--with-acl
make
}
check() {
cd "$srcdir/${pkgname}-${pkgver}"
make test
}
package() {
cd "$srcdir/${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install
install -dm755 "$pkgdir/etc/logrotate.d"
install -Dm644 "$srcdir/logrotate.conf" "$pkgdir/etc/logrotate.conf"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
#validpgpkeys=('992A96E075056E79CD8214F9873DB37572A37B36')
validpgpkeys=('8ECCDF12100AD84DA2EE7EBFC78CE737A3C3E28E')
sha256sums=(42b4080ee99c9fb6a7d12d8e787637d057a635194e25971997eebbe8d5e57618 # logrotate-3.22.0.tar.xz
ebf2e09dd3873264fd05cdfd38d7d2d6baf38a7422210d94e01ee44ccf089c12 # logrotate-3.22.0.tar.xz.asc
42e289081a4d6b144c89dbfc49bde7a01b383055bf90a05a764f8c3dee25a6ce) # logrotate.conf
## b7c2beae6243b2344f99c9eab60cb736fd475827fd5d93eeebb0c861b2b509aa logrotate-3.22.0-01-x86_64.pkg.tar.lz