diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 29 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..45db95a66cec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = xpilot + pkgdesc = XPilot - Multiplayer online space action since 1991 + pkgver = 4.5.5 + pkgrel = 1 + url = http://xpilot.org + arch = x86_64 + license = GPL + makedepends = imake + makedepends = setconf + makedepends = xorgproto + source = xpilot-4.5.5.tar.bz2::https://downloads.sourceforge.net/project/xpilotgame/xpilot-4/xpilot-4.5.5/xpilot-4.5.5.tar.bz2 + sha256sums = 5e40424d093c8b712170a5dff3396df63302775f42da829b8832840f359cd92a + +pkgname = xpilot + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6e56c1451ac4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +pkg +src +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dda36b4eae89 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Robert Lowe <pngwen@acm.org> +pkgname=xpilot +pkgver=4.5.5 +pkgrel=1 +pkgdesc='XPilot - Multiplayer online space action since 1991' +arch=('x86_64') +url='http://xpilot.org' +license=('GPL') +makedepends=('imake' 'setconf' 'xorgproto') +source=("$pkgname-$pkgver.tar.bz2::https://downloads.sourceforge.net/project/xpilotgame/xpilot-4/xpilot-4.5.5/xpilot-$pkgver.tar.bz2") +sha256sums=('5e40424d093c8b712170a5dff3396df63302775f42da829b8832840f359cd92a') + +prepare() { + cd "$pkgname-$pkgver" + setconf -a Local.config PREFIX=/usr + sed -i 's/getline/xpilot_getline/g' src/client/textinterface.c + xmkmf -a + cd .. +} + +build() { + cd "$pkgname-$pkgver" + make -s +} + +package() { + cd $pkgname-$pkgver + make -s DESTDIR="$pkgdir/" install install.man +} |