main/gnumeric: modernize abuild

This commit is contained in:
tmpfile 2017-05-13 13:16:03 -03:00 committed by Natanael Copa
parent 746cc54609
commit 2aa214e3d2

View File

@ -10,19 +10,12 @@ makedepends="gtk+3.0-dev intltool desktop-file-utils goffice-dev rarian
python2-dev py-gobject3-dev libxslt-dev bison flex itstool
libxml2-utils
autoconf automake libtool"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.12/$pkgname-$pkgver.tar.xz
"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.12/$pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
default_prepare
autoreconf -vif
}
@ -35,14 +28,13 @@ build() {
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--with-python \
|| return 1
make || return 1
--with-python
make
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
make -j1 DESTDIR="$pkgdir" install
}
sha512sums="59f2b6eb9b43414a4673657b230aeb9beb9dea5e2eec8457719e8d1fbfab0056807cf1946dfb8b9c0dc9ec3194543ac0b7b3d51069099ab9fd8b80121172821d gnumeric-1.12.34.tar.xz"