summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf5e7887d46d2daa65abcc86b24c543cd4f4ee33 (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
# Maintainer: Nick Cao <nickcao@nichi.co>
pkgname=arch-prime-git
pkgver=0.9.4.r0.ged63ff8
pkgver() {
  cd ArchPrime
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc='Provide nvidia-prime like package for Archlinux'
arch=('any')
url='https://gitlab.com/NickCao/ArchPrime'
license=('GPL3')
depends=('bash' 'nvidia')
makedepends=('git')
optdepends=('bbswitch: for powering off the nvidia GPU')
source=('git+https://gitlab.com/NickCao/ArchPrime')
md5sums=('SKIP')

package() {
        install -dm 755 "${pkgdir}"/etc/prime/conf/
        cp -r --no-preserve='ownership,mode' "${srcdir}"/ArchPrime/conf/* "${pkgdir}"/etc/prime/conf/
	install -Dm755 "${srcdir}"/ArchPrime/prime-select "${pkgdir}"/usr/bin/prime-select
	install -Dm755 "${srcdir}"/ArchPrime/prime-run "${pkgdir}"/usr/bin/prime-run
}