From 0ad5ef6dad01452b820384473d68ca09ac5e8024 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Mon, 17 Sep 2018 11:15:23 +0200 Subject: Add gopherus-svn. --- gopherus-svn/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 gopherus-svn/PKGBUILD (limited to 'gopherus-svn/PKGBUILD') diff --git a/gopherus-svn/PKGBUILD b/gopherus-svn/PKGBUILD new file mode 100644 index 0000000..072532c --- /dev/null +++ b/gopherus-svn/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Deposite Pirate + +_pkgname=gopherus +_pkgver=1.1 +pkgname=$_pkgname-svn +pkgver=1.1.r48 +pkgrel=1 +pkgdesc="Gopher client" +arch=('i686' 'x86_64') +url="http://gopherus.sourceforge.net" +license=('GPL3') +depends=('ncurses') +optdepends=('sdl2') +makedepends=('subversion') +conflicts=('gopherus') +provides=('gopherus') +source=("$_pkgname::svn://svn.code.sf.net/p/gopherus/code" + 'gopherus.desktop') +sha256sums=('SKIP' + 'b01f1fa220cb788edf5c743a35aeff169f62eefee19d5f6dee96274e8c8cfd21') + +pkgver() { + cd "${_pkgname}" + local ver="$(svnversion)" + printf "${_pkgver}.r%s" "${ver//[[:alpha:]]}" +} + +build() { + cd "${_pkgname}/trunk" + sed -i '/upx --best --lzma/d' Makefile.lin + make -f Makefile.lin CFLAGS="${CFLAGS}" + make -f Makefile.lin gopherus-sdl CFLAGS="${CFLAGS}" +} + +package() { + cd "${_pkgname}/trunk" + + install -dm755 "${pkgdir}/usr/bin" + install -m755 gopherus gopherus-sdl "${pkgdir}/usr/bin" + + install -dm755 "${pkgdir}/usr/share/doc/${_pkgname}" + install -m644 gopherus.txt history.txt \ + "${pkgdir}/usr/share/doc/${_pkgname}" + + install -Dm644 icon.svg \ + "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg" + + install -Dm644 "${srcdir}/gopherus.desktop" \ + "${pkgdir}/usr/share/applications/${_pkgname}.desktop" +} -- cgit v1.2.3-70-g09d2