summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb9aaa640e4f73cf3daa8bdc383d5e1a08164151 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Otakar Truněček <otakar.trunecek@gmail.com>

pkgname=vcp-git
pkgver=2.2.r4
pkgrel=2
pkgdesc="Visual cp: a cp program with some scrollbars"
arch=('i686' 'x86_64')
url="https://github.com/Leask/VCP"
license=('custom:BSD')
depends=('ncurses')
makedepends=('git')
provides=('vcp')
conflicts=('vcp')
backup=('etc/vcp.conf')
source=("git+$url")
md5sums=('SKIP')
_gitname="VCP"

pkgver() {
  cd "$_gitname"
  printf "%s.%s.r%s" $(awk '/define VER_MAJ/ {print $3}' common.h) $(awk '/define VER_MIN/ {print $3}' common.h) $(git rev-list --count HEAD)
}

build() {
  cd "$_gitname"
  CFLAGS+=" -fcommon" make 
}

package() {
  cd "$_gitname"
  install -D -m 755 -o root -g root vcp "$pkgdir"/usr/bin/vcp
  install -D -m 644 -o root -g root vcp.1.gz \
    "$pkgdir"/usr/share/man/man1/vcp.1.gz
  install -D -m 644 -o root -g root vcp.pl.1.gz \
    "$pkgdir"/usr/share/man/pl/man1/vcp.1.gz
  install -D -m 644 -o root -g root vcp.conf.sample \
    "$pkgdir"/etc/vcp.conf
  install -D -m 644 COPYRIGHT \
    "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
}