summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a91f7133eb3c187299695ae0028c4ed166e25115 (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
34
# Maintainer: Librewish <librewish AT gmail.com>

_pkgname=memavaild
pkgname=${_pkgname}
pkgver=0.6
pkgrel=1
pkgdesc="Improve responsiveness during heavy swapping: keep amount of available memory."
arch=('any')
url="https://github.com/hakavlad/memavaild"
license=('MIT')
source=(
	"$pkgname::https://github.com/hakavlad/memavaild/archive/v${pkgver}.tar.gz"
)
md5sums=('SKIP')
depends=(
	'python'
)
conflicts=("${_pkgname}")
install=${_pkgname}.install
backup=(
	'etc/memavaild.conf'
)

package() {
	cd "${srcdir}/${pkgname}-${pkgver}" || exit 2
	make \
		DESTDIR="${pkgdir}" \
		PREFIX="/usr" \
		SBINDIR="/usr/bin" \
		SYSCONFDIR="/etc" \
		SYSTEMDUNITDIR="/usr/lib/systemd/system" \
		install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}