Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

unixcw 3.1.1 pkgbuild

By: a guest on Nov 24th, 2012  |  syntax: Bash  |  size: 1.38 KB  |  views: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
  2.  
  3. pkgname=unixcw
  4. pkgver=3.1.1
  5. pkgrel=1
  6. pkgdesc="CW tutor and generator program suite"
  7. arch=('i686' 'x86_64')
  8. url="http://unixcw.sourceforge.net"
  9. license=('GPL')
  10. depends=('qt')
  11. makedepends=('pkgconfig')
  12. source=(http://downloads.sourceforge.net/sourceforge/unixcw/$pkgname-$pkgver.tar.gz
  13.         $pkgname $pkgname.desktop $pkgname.png)
  14. md5sums=('7be27f07f883254edcd5a9344a2c9e7e'
  15.          '3f6168a6c81c550dc78006202f959db3'
  16.          'b07f06b4fc940ba1b853e2b23f686490'
  17.          'f7f81dcf7a1bba55bf8cde70d59d8ed5')
  18. sha256sums=('25c355fa437589d22d4f101e58ba968c8de41ef34d99b17b5ad984a442adf60c'
  19.             'f23fdc2c7346abd26b8acc8961eff599f08e6905a6cef2b0e402d86c6a9a1714'
  20.             '69d3905c87200ddfda66275b72e73b8fda0636a0a600f5a6e7d8324caab0eee7'
  21.             'be1d10724873ae84fec6f580792e5ce9fe2dbfc3e75e2bde14f6893391a63ff1')
  22.  
  23. build() {
  24.         cd $srcdir/$pkgname-$pkgver
  25.                          
  26.         ./configure --prefix=/usr
  27.         make
  28. }
  29.  
  30. package() {
  31.         cd $srcdir/$pkgname-$pkgver
  32.         make prefix=$pkgdir/usr install
  33.                                                                                  
  34.         cd $pkgdir/usr/share/man/man1
  35.         ln -sf xcwcp.1.gz unixcw.1.gz
  36.                                                                                    
  37.         cd $srcdir
  38.         install -D -m755 $pkgname $pkgdir/usr/bin/$pkgname
  39.         install -D -m644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  40.         install -D -m644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
  41. }