summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f230cfdb19ae6e903244003359cfcb8bd11fa1a2 (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
31
32
# Maintainer: lestb <gitcommitter at email dot ardentcoding dot com>
# Package Repository: https://github.com/mij-aur-packages/log2ram

pkgname=log2ram
pkgver=1.6.1
pkgrel=1
pkgdesc="ramlog like for systemd (Put log into a ram folder)"
arch=('any')
url="https://github.com/azlux/log2ram"
license=('MIT')
backup=('etc/log2ram.conf')
optdepends=('rsync: for better performance')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/azlux/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('41aeda16080fed76ddab12ecc50a84d1ba1b11cd76547efa37e4fa9a17969d73')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's:/usr/local/bin:/usr/bin:' log2ram.service
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -d "$pkgdir"/usr/bin
  install -d "$pkgdir"/usr/lib/systemd/system
  install -d "$pkgdir"/etc
  install -m 644 log2ram.service "$pkgdir"/usr/lib/systemd/system/log2ram.service
  install -m 644 log2ram-daily.service "$pkgdir"/usr/lib/systemd/system/log2ram-daily.service
  install -m 644 log2ram-daily.timer "$pkgdir"/usr/lib/systemd/system/log2ram-daily.timer
  install -m 755 log2ram "$pkgdir"/usr/bin/log2ram
  install -m 644 log2ram.conf "$pkgdir"/etc/log2ram.conf

}