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

pkgname=gopreload-git
_gitname=gopreload
pkgver=r59.21b08e6
pkgrel=1
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')
source=('git+https://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: