PKGBUILDs/community/gnome-software/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

2017-05-10 19:58:34 +00:00
# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Yosef Or Boczko <yoseforb@gnome.org>
2017-05-11 00:24:12 +00:00
# remove when bumped upstream
2017-05-10 19:58:34 +00:00
pkgname=gnome-software
pkgver=3.24.2
pkgrel=1
pkgdesc="GNOME Software Tools"
arch=(i686 x86_64)
license=(GPL2)
url="https://wiki.gnome.org/Apps/Software/"
depends=(gtk3 appstream-glib libsoup gsettings-desktop-schemas gnome-desktop flatpak
packagekit archlinux-appstream-data gtkspell3 libgudev)
makedepends=(intltool python docbook-xsl gnome-common git)
_commit=783e66b61379eebd598f8b0b167c0f7d3f537c0d # tags/GNOME_SOFTWARE_3_24_2^0
source=("git+https://git.gnome.org/browse/gnome-software#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^GNOME_SOFTWARE_//;s/_/./g;s/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/$pkgname \
--disable-static \
--disable-schemas-compile \
--enable-packagekit \
--enable-flatpak \
--enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd $pkgname
make DESTDIR="${pkgdir}" install
}