You are not logged in.

#1 2019-07-24 07:27:45

officernice
Member
Registered: 2019-07-24
Posts: 2

PKGBUILD request: FortressOne

I'd like to request a build of Fortress One: https://www.fortressone.org/

I used their installer but it did not quite work. Ubuntu is the only thing they really tested. I tried requesting an AUR pkg on the Github but no answer as of yet. I tried doing it myself, reading along (including the guidelines), and I could not quite get it to work. I have a lot going on atm personally, which does not help. My digging did result in that as far as I can see it depends on wget and pcre.

Offline

#2 2019-07-24 16:14:42

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: PKGBUILD request: FortressOne

Welcome to the arch linux forums officernice.  Could you please post your PKGBUILD that did not quite work?

Offline

#3 2019-07-24 19:14:25

grinner
Member
Registered: 2019-06-28
Posts: 28

Re: PKGBUILD request: FortressOne

As far as I can tell the only issue on Arch (based) systems is that it is needed to create a symlink to libpcre.

sudo ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3

No idea of the do's and dont's of making an AUR package. smile

Last edited by grinner (2019-07-24 19:23:32)

Offline

#4 2019-07-24 19:55:31

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: PKGBUILD request: FortressOne

@grinner why would you need that symlink when building the packages from source?

Offline

#5 2019-07-25 07:41:52

officernice
Member
Registered: 2019-07-24
Posts: 2

Re: PKGBUILD request: FortressOne

loqs wrote:

Welcome to the arch linux forums officernice.  Could you please post your PKGBUILD that did not quite work?

Thank you very much, loqs! smile This is what I have so far, and as I read it, and kinda compared it to empty defaults and other PKGBUILDS, I just thought "I have no idea what I am doing"

# Maintainer: Your Name <youremail@domain.com>
pkgname=fortressone
pkgver=1.0.1
pkgrel=1
pkgdesc="All in one QuakeWorld Team Fortress package"
arch=('x86_64')
url="https://www.fortressone.org/"
license=('GPL')
groups=()
depends=(
    'wget'
    'pcre'
    )
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$fortressone-$1.0.1.tar.gz::https://github.com/FortressOne/linux-installer/releases/download/v1.0.1/fortressone-linux-portable-1.0.1.zip")
noextract=()
md5sums=() #autofill using updpkgsums

build() {
  cd "$fortressone-$1.0.1"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$fortressone-$1.0.1"

  make ~/.fortressone/="$.fortressone/" install
}

Offline

#6 2019-07-25 09:00:45

grinner
Member
Registered: 2019-06-28
Posts: 28

Re: PKGBUILD request: FortressOne

loqs wrote:

why would you need that symlink when building the packages from source?

It depends on what the 'source' is. wink

By implication I was querying the reason for an AUR package (since the installer worked fine for me).  But it certainly won't hurt - I'll let you reply to officernice.

Offline

#7 2019-09-28 20:52:31

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: PKGBUILD request: FortressOne

pkgname=fortressone
pkgver=1.1
pkgrel=1
pkgdesc="All in one QuakeWorld Team Fortress package"
arch=('x86_64')
url="https://www.fortressone.org/"
license=('GPL' 'unknown')
depends=('curl' 'libjpeg-turbo' 'libpng' 'jansson' 'sdl2' 'speex')
makedepends=('git')
source=(git+https://github.com/FortressOne/ezquake-source.git#commit=8ed9381cc5a4d9bed6728b5400345bdef5b5dca7
        https://github.com/FortressOne/linux-installer/releases/download/v1.0.1/fortressone-linux-portable-1.0.1.zip)
sha256sums=('SKIP'
            '9766276207e9a270b0d15c0579a3c0a34c546bfac173de7b716be2923f439c7e')

build() {
  cd ezquake-source
  make
}

package() {
  install -dm 755 "$pkgdir"/opt
  find fortressone -type d -exec install -dm755 '{}' "$pkgdir/opt/"'{}' \;
  find fortressone -type f -exec install -Dm644 '{}' "$pkgdir/opt/"'{}' \;
  install -Dm 755 ezquake-source/fortressone-linux-x86_64 "$pkgdir"/opt/fortressone/fortressone-linux-x86_64
}

Layout set to match installer and placed under /opt.
The license for files other than the binary is not specified by upstream.

Offline

Board footer

Powered by FluxBB