csync-git
[mirrors/ArchLinux-Packages.git] / gedasymbols-csv / PKGBUILD
... / ...
CommitLineData
1# Contributor: Thomas Mudrunka <harvie@@email..cz>
2# Maintainer: Thomas Mudrunka <harvie@@email..cz>
3# You can also contact me on http://blog.harvie.cz/
4
5pkgname=gedasymbols-cvs
6pkgver=20141121
7pkgrel=1
8pkgdesc="GEDA+PCB symbols and footprints of parts from gedasymbols.org"
9arch=(any)
10url="http://www.gedasymbols.org/cvs.html"
11license=('GPL')
12groups=()
13depends=()
14makedepends=('cvs')
15provides=()
16conflicts=()
17replaces=()
18backup=()
19options=()
20install=
21source=()
22noextract=()
23md5sums=() #generate with 'makepkg -g'
24
25_cvsroot=:pserver:anonymous:anonymous@cvs.gedasymbols.org:/cvs/gedasymbols
26_cvsmod=.
27
28build() {
29 cd "$srcdir"
30 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
31
32 if [[ -d "$_cvsmod/CVS" ]]; then
33 cd "$_cvsmod"
34 cvs -z3 update -d
35 else
36 cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
37 cd "$_cvsmod"
38 fi
39
40 msg "CVS checkout done or server timeout"
41}
42
43package() {
44 mkdir -p "$pkgdir/usr/share/pcb/newlib"
45 mkdir -p "$pkgdir/usr/share/gEDA/sym"
46 for i in "$srcdir"/www/footprints/newlib/*; do
47 cp -r "$i" "$pkgdir/usr/share/pcb/newlib/";
48 done;
49 for i in "$srcdir"/www/user/*/footprints/*; do
50 cp -r "$i" "$pkgdir/usr/share/pcb/newlib/";
51 done;
52
53 find "$pkgdir" -name 'CVS' | xargs rm -r
54}
55
56# vim:set ts=2 sw=2 et:
This page took 0.71035 seconds and 5 git commands to generate.