Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. pkgname=netbsd-curses
  2. pkgver=0.1.1
  3. pkgrel=1
  4. arch=(i686 x86_64)
  5. url="https://github.com/sabotage-linux/netbsd-curses"
  6. license=(GPL)
  7. depends=(glibc)
  8. provides=(ncurses)
  9. conflicts=(ncurses)
  10. source=(https://github.com/sabotage-linux/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz)
  11. sha256sums=('bab54db4bf0dcde910af639782aed75c15e0f81f2f444b95f6c6d43b48c94959')
  12.  
  13. prepare() {
  14.     cd $pkgname-$pkgver
  15. #   Support FORTIFY_SOURCE validation macro
  16.     sed -i 's/-O0/-O1/' GNUmakefile
  17. }
  18.  
  19. build() {
  20.     cd $pkgname-$pkgver
  21.     make CFLAGS+=" -fPIC"
  22. }
  23.  
  24. package() {
  25.     cd $pkgname-$pkgver
  26.     make PREFIX=/usr DESTDIR=$pkgdir install
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement