PKGBUILD

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
# Contributor: Javier "Phrodo_00" Aravena <[email protected]>
# Contributor: Marcos Heredia <chelqo_at_gmail_dot_com> (REALLY FROM OPENSUSE.ORG!!)

pkgname=gelemental
pkgver=1.2.0
pkgrel=4
pkgdesc="gElemental is a periodic table viewer that provides detailed information on the chemical elements."
arch=('i686' 'x86_64')
url="http://www.kdau.com/projects/gelemental/"
license=('GPL')
depends=('glibmm>=2.6' 'gtkmm>=2.6')
makedepends=('bzip2' 'gettext' 'libtool' 'pkgconfig')
source=("https://api.opensuse.org/public/source/Education/gelemental/$pkgname-$pkgver.tar.bz2"
	"https://api.opensuse.org/public/source/Education/gelemental/$pkgname-$pkgver-gcc43.patch"
	"bigger_info.patch")
md5sums=('efe3dc7b408c0c8c0b72fdd0733b2fb6'
         'c91f3e04a4eb50301f09703d17c3c156'
         'c67b9078fc42423eaebbdd1781ee819b')

build() {
  cd $startdir/src/
  patch -p0 -s <../$pkgname-$pkgver-gcc43.patch || return 1
  patch -p0 -s <../bigger_info.patch || return 1
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}