summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04ac7cdb5f34711fc6c0df9e3aadb97cd5c97602 (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
33
# Maintainer: Alex Murkoff <413x1nkp@gmail.com>
pkgname=paclogger
pkgver=1.3.1
pkgrel=1
pkgdesc="A Pacman hook written in C++ that logs all of the updates and downgrades every day."
arch=("x86_64")
url="https://github.com/alexlnkp/paclogger"
license=("Unlicense")
depends=("glibc"
				 "gcc-libs")
makedepends=("cmake")
source=("$pkgname-$pkgver.tar.gz::https://github.com/alexlnkp/paclogger/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('e444c171533b79f0f4b5bf0e993fd384c3554c8ad8601308a5208f8191e4aa5e')

prepare() {
	tar -xvzf $pkgname-$pkgver.tar.gz
	cd $pkgname-$pkgver/
	mv * ../
	cd ..
	mkdir out
}

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-Wno-dev

	cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}