summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd38853f652955364746d865ec0ac0a2a892021f (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
# Maintainer : Marcos Heredia <chelqo@gmail.com> (REALLY FROM OPENSUSE.ORG!!)
# Contributor: Javier "Phrodo_00" Aravena <phrodo.00@gmail.com>
# Contributor: Ivan Stojic <ivstojic@inet.hr>
# Contributor: Paul N. Maxwell <msg.maxwel@gmail.com>
# Contributor: James Chai <cth451@gmail.com>
# Contributor: hxtk

pkgname=gelemental
pkgver=2.0.0
pkgrel=1
pkgdesc="gElemental is a periodic table viewer that provides detailed information on the chemical elements"
arch=('i686' 'x86_64')
url="https://github.com/ginggs/gelemental"
license=('GPL')
depends=('gtkmm' 'gdk-pixbuf2')
makedepends=('gawk' 'make' 'gettext' 'libtool' 'pkgconf' 'intltool' 'perl>=5.8.1' 'doxygen')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/ginggs/${pkgname}/archive/v${pkgver}.tar.gz)
md5sums=('8d38d7599b0f2fc96e2bd622cd762b9a')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install

  install -dpm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -Dpm644 COPYING COPYING.DATA  "${pkgdir}/usr/share/licenses/${pkgname}/"

  install -dpm755 "${pkgdir}/usr/share/doc/${pkgname}/"
  install -Dpm644 AUTHORS ChangeLog INSTALL NEWS* README TODO TRANSLATORS "${pkgdir}/usr/share/doc/${pkgname}/"
}