summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b0b90815fcab05422edcc2631a8a6997e9ef955 (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
50
51
# Maintainer: Grey Christoforo <first name [at] last name [dot] net>

pkgname=ucsc-kent-genome-tools
pkgver=347
pkgrel=1
pkgdesc="UCSC genome browser 'kent' bioinformatic utilities"
arch=('i686' 'x86_64')
url="http://hgdownload.soe.ucsc.edu/admin/exe/"
license=('other')
install=$pkgname.install
depends=('mariadb-clients' 'libpng' 'openssl')
source=(http://hgdownload.soe.ucsc.edu/admin/exe/userApps.v${pkgver}.src.tgz)
sha1sums=('25b6351f795f11e95e061b00dfd1b027dc4dd776')

prepare() {
  cd "${srcdir}/userApps/"
  make clean
}

build() {
  cd "${srcdir}/userApps/"
  # don't know why I need the next three lines
  make libs
  cp kent/src/lib/x86_64/* kent/src/lib/local/.
  cp kent/src/lib/local/* kent/src/lib/x86_64/.
  make all
}

package() {
  cd "${srcdir}/userApps/"
  mkdir -p "${pkgdir}/opt/${pkgname}/"
  cp -a * "${pkgdir}/opt/${pkgname}/."
  rm -rf "${pkgdir}/opt/${pkgname}/kent"

  mkdir -p "$pkgdir/etc/profile.d"
  echo "export PATH=/opt/${pkgname}/bin:"'$PATH' > "$pkgdir/etc/profile.d/${pkgname}.sh"
  chmod +x "$pkgdir/etc/profile.d/${pkgname}.sh"

  cat  > "${pkgdir}/opt/${pkgname}/.hg.conf" <<EOF
db.host=genome-mysql.cse.ucsc.edu
db.user=genomep
db.password=password
central.db=hgcentral
EOF
   
  install -D -m644 licenseUcscGenomeBrowser.txt "${pkgdir}/usr/share/licenses/${pkgname}/licenseUcscGenomeBrowser.txt"
  install -D -m644 GenomeBrowserLicense.pdf "${pkgdir}/usr/share/licenses/${pkgname}/GenomeBrowserLicense.pdf"
  install -D -m644 licenseBlat.txt "${pkgdir}/usr/share/licenses/${pkgname}/licenseBlat.txt"
}

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