| 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 | |
| 5 | pkgname=gedasymbols-cvs |
| 6 | pkgver=20141121 |
| 7 | pkgrel=1 |
| 8 | pkgdesc="GEDA+PCB symbols and footprints of parts from gedasymbols.org" |
| 9 | arch=(any) |
| 10 | url="http://www.gedasymbols.org/cvs.html" |
| 11 | license=('GPL') |
| 12 | groups=() |
| 13 | depends=() |
| 14 | makedepends=('cvs') |
| 15 | provides=() |
| 16 | conflicts=() |
| 17 | replaces=() |
| 18 | backup=() |
| 19 | options=() |
| 20 | install= |
| 21 | source=() |
| 22 | noextract=() |
| 23 | md5sums=() #generate with 'makepkg -g' |
| 24 | |
| 25 | _cvsroot=:pserver:anonymous:anonymous@cvs.gedasymbols.org:/cvs/gedasymbols |
| 26 | _cvsmod=. |
| 27 | |
| 28 | build() { |
| 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 | |
| 43 | package() { |
| 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: |