summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a979ae6f80db86fce31bf8424849d5f9893d42eb (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
pkgname=x3dctl
pkgver=1.4.1
pkgrel=1
pkgdesc="Lightweight utility for AMD X3D mode switching, IRQ steering, and per-process policy"
arch=('x86_64')
url="https://github.com/GrandBIRDLizard/X3Dctl"
license=('MIT')
depends=('sudo' 'libcap')
makedepends=('make' 'gcc')
backup=('etc/x3dctl.conf')
install=x3dctl.install
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/GrandBIRDLizard/X3Dctl/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('3ccb3da5c4248a560ee0be3dbfec7d0a5503d518d9a789f7a8f0a045f43bd4d8')

build() {
  cd "${srcdir}/X3Dctl-${pkgver}"
  make
}

package() {
  cd "${srcdir}/X3Dctl-${pkgver}"

  make DESTDIR="${pkgdir}" PREFIX=/usr install

  install -Dm644 LICENSE \
      "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}