summaryrefslogtreecommitdiffstats
path: root/agave/PKGBUILD
diff options
context:
space:
mode:
authorkj-sh6042024-06-30 07:11:56 -0400
committerkj-sh6042024-06-30 07:11:56 -0400
commit3f8de7f4acaa7bee812517542a09cff2f7fb3df2 (patch)
tree43baf204c8ada4f67ff25ecc969763d565b9114c /agave/PKGBUILD
parent57ed96b7ea72d1f033a7f1f9b60953e36f7381b0 (diff)
kj-gitbot: agave/
Diffstat (limited to 'agave/PKGBUILD')
-rw-r--r--agave/PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/agave/PKGBUILD b/agave/PKGBUILD
new file mode 100644
index 0000000..2bb8553
--- /dev/null
+++ b/agave/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer:
+# Contributor: kj_sh604 <43.splash@gmail.com>
+
+pkgname=agave
+pkgver=0.4.7
+pkgrel=604
+pkgdesc="Colorscheme designer tool for GNOME"
+arch=('x86_64')
+url="https://web.archive.org/web/20170327063642/http://home.gna.org/colorscheme/"
+license=('GPL')
+depends=('libglademm')
+makedepends=('gnome-doc-utils' 'intltool' 'boost')
+
+# use this source when PKGBUILD breaks in the future:
+# source=(https://aedrielkylejavier.me/assets/${pkgname}_$pkgver.orig.tar.gz
+
+source=(http://archive.ubuntu.com/ubuntu/pool/universe/a/$pkgname/${pkgname}_$pkgver.orig.tar.gz
+ agave-0.4.7-mdv-fix-str-fmt.patch
+ schemebox.patch
+ drop-libgnome.patch
+ fix-build-without-gconf.patch)
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Build fix from Fedora
+ patch -Np1 -i ../agave-0.4.7-mdv-fix-str-fmt.patch
+
+ # Another build fix
+ patch -Np1 -i ../schemebox.patch
+
+ # Remove deprecated libgnome dependency
+ patch -Np1 -i ../drop-libgnome.patch
+
+ # Fix build without gconfmm installed
+ patch -Np1 -i ../fix-build-without-gconf.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+ CXXFLAGS+=' -std=c++11'
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-scrollkeeper --disable-gnome --disable-gconf
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ rm "$pkgdir/agave.schemas"
+}