summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ab90c9482a22a3fd3da5e4fd773a2853138a266 (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
# Maintainer: Genstar <genstar@disroot.org>
pkgname=ipxgw-git
pkgver=r20.dd9db85
pkgrel=1
pkgdesc="DOSBox IPXNET to real IPX network gateway"
arch=('x86_64')
url="https://github.com/jsalin/ipxgw"
license=('GPL2')
depends=('libpcap' 'sdl' 'sdl_net')
makedepends=('git')
provides=('ipxgw')
conflicts=('ipxgw')
source=("${pkgname%}::git+https://github.com/jsalin/ipxgw.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%}"
	make
}

package() {
	cd "$srcdir/${pkgname%}"
	install -Dm555 ipxgw "$pkgdir/usr/bin/ipxgw"
}