summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcdf715e1424e448558d799ac45134a2d49d425c (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Ultracoolguy <dummyd241 at gmaildotcom>
pkgname="switch-lan-play"
pkgver=v0.2.1.r0.g1c26ca6
pkgrel=1
epoch=0
pkgdesc="A program for connecting to switch-lan-play servers-see url for more info"
arch=(any)
url="https://github.com/spacemeowx2/switch-lan-play"
license=('GPL3')
groups=()
depends=(libpcap)
makedepends=(cmake)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname::git+${url}")
noextract=()
md5sums=('SKIP')

#Taken from this forum https://bbs.archlinux.org/viewtopic.php?id=230826
 pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


prepare() {
	cd $pkgname
	git submodule init
	git submodule update --init --recursive
}



build()	{
	cd $pkgname
	mkdir -p build
	cd build
	cmake -DCMAKE_BUILD_TYPE=Release ..
	make
}
package() {
	cd switch-lan-play/build
	make DESTDIR="$pkgdir/" install
}