PKGBUILD-gnome.proto 1.19 KB
Newer Older
1
2
3
4
5
6
7
8
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# See http://wiki.archlinux.org/index.php/Gnome_package_guidelines for more
# information on Gnome packaging.

9
# Maintainer: Your Name <youremail@domain.com>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
pkgname=NAME
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=$pkgname.install
source=($pkgname-$pkgver.tar.gz)
noextract=()
md5sums=() #generate with 'makepkg -g'

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --sysconfdir=/etc \
33
34
              --localstatedir=/var --disable-scrollkeeper
  make
35
36
37
38
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
39
  make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install
40

matt mooney's avatar
matt mooney committed
41
42
  install -m755 -d "$pkgdir/usr/share/gconf/schemas"
  gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/$pkgname.schemas" \
43
    "$pkgdir"/etc/gconf/schemas/*.schemas
44
45
  rm -f "$pkgdir"/etc/gconf/schemas/*.schemas
}
matt mooney's avatar
matt mooney committed
46
47

# vim:set ts=2 sw=2 et: