46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=goffice
|
|
pkgver=0.10.51
|
|
pkgrel=01
|
|
pkgdesc="A GLib/GTK+ set of document-centric objects and charting library"
|
|
url="https://git.gnome.org/browse/goffice"
|
|
arch=(x86_64)
|
|
depends=(librsvg gtk3 libgsf libspectre libxslt lasem)
|
|
makedepends=(intltool gtk-doc gobject-introspection autoconf-archive git)
|
|
_commit=495e70ee2db5214431c137860435f41ba6e4c712
|
|
source=("git+https://gitlab.gnome.org/GNOME/goffice.git#commit=$_commit")
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/^GOFFICE_//;s/_/./g;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--localstatedir=/var --disable-static --enable-introspection --enable-gtk-doc
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=(GPL)
|
|
|
|
sha256sums=('SKIP')
|