summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD50
-rw-r--r--gopherus.desktop21
3 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1ca8cb9b21b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = gopherus-svn
+ pkgdesc = Gopher client
+ pkgver = 1.1.r33
+ pkgrel = 1
+ url = http://gopherus.sourceforge.net
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = subversion
+ depends = ncurses
+ optdepends = sdl2
+ provides = gopherus
+ conflicts = gopherus
+ source = gopherus::svn://svn.code.sf.net/p/gopherus/code
+ source = gopherus.desktop
+ sha256sums = SKIP
+ sha256sums = dfce631c4c60761a5324e90dbe9938f9f74b21b68ee4e8c1bf8dc36018ad32cb
+
+pkgname = gopherus-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..615d25b8267
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Christoph J. Thompson <thompsonc at protonmail dot ch>
+
+_pkgname=gopherus
+_pkgver=1.1
+pkgname=$_pkgname-svn
+pkgver=1.1.r33
+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'
+ 'dfce631c4c60761a5324e90dbe9938f9f74b21b68ee4e8c1bf8dc36018ad32cb')
+
+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
+ make -f Makefile.lin gopherus-sdl
+}
+
+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"
+}
diff --git a/gopherus.desktop b/gopherus.desktop
new file mode 100644
index 00000000000..5516d30aa40
--- /dev/null
+++ b/gopherus.desktop
@@ -0,0 +1,21 @@
+[Desktop Entry]
+Version=1.0
+Name=Gopherus
+GenericName=Gopher browser
+GenericName[en_GB]=Gopher browser
+GenericName[fr]=Navigateur gopher
+GenericName[it]=Browser gopher
+GenericName[nb]=Gopherleser
+Comment=Browse gopherspace
+Comment[de]=Gopher surfen
+Comment[en_GB]=Browse gopherspace
+Comment[fr]=Naviguer les sites Gopher
+Comment[it]=Esplora i siti Gopher
+Comment[nb]=Surf på Gopher
+Keywords=gopher;
+Type=Application
+Icon=gopherus
+Categories=SDL;Network;
+Exec=gopherus-sdl %F
+Terminal=false
+StartupNotify=true