blob: 249a31929dad983924395627e88be3ffaf4c01fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-power-manager
pkgver=3.16.1
pkgrel=0
pkgdesc="GNOME power manager"
url="http://www.gnome.org"
arch="all"
license="GPL"
depends=
depends_dev="gtk+3.0-dev"
makedepends="$depends_dev intltool gobject-introspection-dev upower-dev"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
subpackages="$pkgname-lang"
source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
"
_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR="$pkgdir" install || return 1
}
md5sums="dfe80c3fe370e790bac0a8837f2f5bc9 gnome-power-manager-3.16.1.tar.xz"
sha256sums="a4177dbff9fac1f1babf0d2715f950ee0fa3dd143d7b5d89311f33afca924231 gnome-power-manager-3.16.1.tar.xz"
sha512sums="b4f04196f88bb43eaefc910e733cb291fd88c260baae275595fa1e9913ccb2577ea2192238c6bf18297c4cc69b0d0e88571b96ee526f37ad260f6e1b429488da gnome-power-manager-3.16.1.tar.xz"
|