blob: 9990b3cff6ef8a52b696a993d5db2238291b4756 (
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
35
36
37
|
# Maintainer: hertg <aur@her.tg>
_pkgname=egpu-switcher
pkgname=$_pkgname-git
pkgver=0.18.0.r0.ge4bf70a
pkgrel=1
pkgdesc="Automatically detect and use eGPU on startup, git version"
arch=('any')
url="https://github.com/hertg/egpu-switcher"
license=('GPL')
depends=()
makedepends=('git' 'go')
provides=($_pkgname)
conflicts=($_pkgname)
install=${pkgname}.install
source=("${pkgname}::git+https://github.com/hertg/egpu-switcher.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/$pkgname"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export ORIGIN="aur"
make build -s
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install -s
}
|