summaryrefslogtreecommitdiff
path: root/gopherus-svn
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-17 11:15:23 +0200
committerDeposite Pirate2018-09-17 11:15:23 +0200
commit0ad5ef6dad01452b820384473d68ca09ac5e8024 (patch)
tree1a3bf9bcbb62e0ead47cb680e4f9c12f3c4e228d /gopherus-svn
parentfb992f4f66e3819e2a05c6d69b92183192bdb6cf (diff)
Add gopherus-svn.
Diffstat (limited to 'gopherus-svn')
-rw-r--r--gopherus-svn/.SRCINFO20
-rw-r--r--gopherus-svn/.gitignore1
-rw-r--r--gopherus-svn/PKGBUILD50
-rw-r--r--gopherus-svn/gopherus.desktop22
4 files changed, 93 insertions, 0 deletions
diff --git a/gopherus-svn/.SRCINFO b/gopherus-svn/.SRCINFO
new file mode 100644
index 0000000..1dbe5f1
--- /dev/null
+++ b/gopherus-svn/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = gopherus-svn
+ pkgdesc = Gopher client
+ pkgver = 1.1.r48
+ 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 = b01f1fa220cb788edf5c743a35aeff169f62eefee19d5f6dee96274e8c8cfd21
+
+pkgname = gopherus-svn
+
diff --git a/gopherus-svn/.gitignore b/gopherus-svn/.gitignore
new file mode 100644
index 0000000..1c150d6
--- /dev/null
+++ b/gopherus-svn/.gitignore
@@ -0,0 +1 @@
+gopherus
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 <dpirate at metalpunks dot info>
+
+_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"
+}
diff --git a/gopherus-svn/gopherus.desktop b/gopherus-svn/gopherus.desktop
new file mode 100644
index 0000000..3293221
--- /dev/null
+++ b/gopherus-svn/gopherus.desktop
@@ -0,0 +1,22 @@
+[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 %U
+Terminal=false
+StartupNotify=true
+MimeType=x-scheme-handler/gopher