yochananmarqos

Untitled

Apr 12th, 2020
469
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=libtree-git
  2. pkgver=1.0.0.r7.g4571d36
  3. pkgrel=1
  4. pkgdesc="ldd as a tree with an option to bundle dependencies into a single folder "
  5. arch=('x86_64')
  6. url="https://github.com/otreblan/libtree"
  7. license=('MIT')
  8. depends=('cppglob')
  9. makedepends=('git' 'cmake' 'cxxopts' 'termcolor' 'elfio')
  10. provides=("${pkgname%-git}")
  11. conflicts=("${pkgname%-git}")
  12. source=("git+$url.git")
  13. sha256sums=('SKIP')
  14.  
  15. pkgver() {
  16.     cd "$srcdir/${pkgname%-git}"
  17.     git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  18. }
  19.  
  20. prepare() {
  21.     cd "$srcdir/${pkgname%-git}"
  22.     mkdir -p build
  23. }
  24.  
  25. build() {
  26.     cd "$srcdir/${pkgname%-git}/build"
  27.     cmake \
  28.         -DUSE_SYSTEM_DEPS=ON \
  29.         -DCMAKE_INSTALL_PREFIX=/usr \
  30.         -DCMAKE_UNITY_BUILD=ON \
  31.         -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
  32.         ..
  33.     make
  34. }
  35.  
  36. package() {
  37.     cd "$srcdir/${pkgname%-git}/build"
  38.     make DESTDIR="$pkgdir/" install
  39.  
  40.     install -Dm644 ../LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  41. }
RAW Paste Data