summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD34
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..130058cc2f2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gentoo
+ pkgdesc = A lightweight file manager for GTK
+ pkgver = 0.20.4
+ pkgrel = 1
+ url = http://www.obsession.se/gentoo/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = gtk3
+ depends = gamin
+ source = http://downloads.sourceforge.net/gentoo/gentoo-0.20.4.tar.gz
+ md5sums = 9e10f5ad00613b63eb02cde89506153d
+
+pkgname = gentoo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e094bc4fe35
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: gls < ghostlovescorebg at gmail dot com >
+
+pkgname=gentoo
+pkgver=0.20.4
+pkgrel=1
+pkgdesc="A lightweight file manager for GTK"
+arch=('i686' 'x86_64')
+url="http://www.obsession.se/gentoo/"
+license=('GPL2')
+depends=('gtk3' 'gamin')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('9e10f5ad00613b63eb02cde89506153d')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ # CPPFLAGS must be set like this, otherwise, gentoo won't build.
+ # Causes error: warning: #warning _FORTIFY_SOURCE requires compiling with optimization
+ # (-O) [-Wcpp]
+ CPPFLAGS=
+ ./configure --prefix=/usr --sysconfdir=/etc
+ #sed -i -e '/GTK_DISABLE_DEPRECATED/s/^/# /' configure.ac
+ #autoconf configure.in > configure
+ sed -i 's/-Werror-implicit-function-declaration//g' Makefile
+ sed -i 's/aclocal-1.13/aclocal/'g Makefile
+ sed -i 's/automake-1.13/automake/'g Makefile
+ sed -i 's/AC_USE_SYSTEM_EXTENSIONS//g' configure.ac
+ make
+ ln -s ${pkgname}-${pkgver}/mkinstalldirs ..
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make prefix=${pkgdir}/usr sysconfdir=${pkgdir}/etc install
+}