summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e494b3ab8aa3be03854a226249bf79c30d9b50b1 (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: Alien X <alienx@AlienX>
# Maintainer: Alien X <alienx@AlienX>
pkgname=realneptune-git
pkgver=1.0.2
pkgrel=1
pkgdesc="Neptune a superfast mechanical keyboard sound app (git)"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/M1ndo/Neptune"
license=('AGPL3')
makedepends=('go>=1.19')
depends=('make' 'libx11' 'libxtst'
         'libxcb' 'libxkbcommon' 'libxkbcommon-x11' 'alsa-lib'
         'libayatana-appindicator' 'libayatana-indicator'
         'ayatana-ido' 'libdbusmenu-glib' 'gtk3'
         'pango' 'harfbuzz' 'at-spi2-core' 'cairo'
         'gdk-pixbuf2' 'libglvnd' 'libxrandr'
         'libxxf86vm' 'libxi' 'libxcursor' 'libxinerama')

source=("https://github.com/M1ndo/Neptune/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('2b283dad3de80285b983daab4a5f81dfa0a6fd7621641f89c00a96a1f791944e')

build() {
  export GOPATH="$srcdir"/gopath
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export CGO_ENABLED=1

  cd "$srcdir/Neptune-$pkgver"
  make linux
}

package() {
  cd "$srcdir/Neptune-$pkgver"
  make DESTDIR="$pkgdir" install
}