I've come up with some improvements, hopefully making it conform to Arch's CMake package guidelines:
libuv
anduvw
are treated as proper dependencies, thus no unnecessary builds.- Fix install prefix to
/usr
. Was/usr/local
(CMake default). - Simplify CMake commands.
PKGBUILD follows:
pkgname=switch-lan-play
pkgver=0.2.3
pkgrel=2
pkgdesc='Make you and your friends play games like in a LAN'
arch=('i686' 'x86_64')
url='https://github.com/spacemeowx2/switch-lan-play'
license=('GPL3')
depends=('libpcap' 'libuv')
makedepends=('cmake' 'uvw')
source=("git+https://github.com/spacemeowx2/$pkgname.git#tag=v$pkgver")
sha256sums=('SKIP')
build() {
cmake -S "$pkgname" -B build -Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUVW_LIBRARY=ON \
-DUV_LIBRARY=ON
make -C build
}
package() {
make -C build DESTDIR="$pkgdir/" install
}
Pinned Comments
Ultracoolguy commented on 2019-12-13 19:02 (UTC)
I moved this package to switch-lan-play-git. If anyone is currently using this then please switch to that one. I'm gonna orphan this package since I only want to mantain that one.
Ultracoolguy commented on 2019-04-18 14:48 (UTC)
The project isn't mine. Thank spacemeowx2 for this.
Bear in mind, this is my first PKGBUILD. I will accept any cleaning recommendations.