summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6631181cec34d205f67160d10dae3efe806b303e (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
# Maintainer : Antonio Orefice <kokoko3k@gmail.com>

pkgname=gopreload-git
_gitname=gopreload
pkgver=r49.ebb83fe
pkgrel=2
pkgdesc="Preloads files needed for given programs"
arch=('any')
url="http://forums.gentoo.org/viewtopic-t-622085-highlight-preload.html"
license=('GPL')
depends=('strace')
optdepends=('wmctrl: needed by gopreload-batch-refresh.sh')
makedepends=('git')
provides=('gopreload')
conflicts=('gopreload')
backup=('etc/gopreload.conf')
install=${_gitname}.install
source=('git://github.com/kokoko3k/gopreload.git')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_gitname}"

  mv README "usr/share/${_gitname}/"

#  cd "usr/share/${_gitname}/mapandlock.source"
  cd "usr/share/${_gitname}/fmlock.source"
  ./compile.sh && ./install.sh

  rm -R  ../fmlock.source
}

package() { 
  cd "${srcdir}/${_gitname}"

  mv * "${pkgdir}"

  mkdir -p "${pkgdir}/usr/bin"
  ln -s /usr/share/gopreload/bin/Prepare.sh "${pkgdir}/usr/bin/gopreload-prepare"
  ln -s /usr/share/gopreload/bin/batch_refresh.sh "${pkgdir}/usr/bin/gopreload-batch-refresh.sh"
}

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