Advertisement
Guest User

PKGBUILD libpcanbasic

a guest
May 14th, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.73 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index c743557..1f36d5f 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -1,7 +1,8 @@
  6.  # Maintainer: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
  7.  
  8.  pkgname=libpcanbasic
  9. -pkgver=4.2.2
  10. +_pkgname=PCAN-Basic_Linux
  11. +pkgver=4.3.1
  12.  pkgrel=1
  13.  pkgdesc='API for the development of applications with PEAK CAN connection for Linux '
  14.  arch=('x86_64')
  15. @@ -9,15 +10,12 @@ url='https://www.peak-system.com/PCAN-USB.199.0.html'
  16.  license=('LGPL')
  17.  depends=('peak-linux-headers')
  18.  source=(
  19. -    "https://www.peak-system.com/produktcd/Develop/PC%20interfaces/Linux/PCAN-Basic_API_for_Linux/PCAN_Basic_Linux-${pkgver}.tar.gz"
  20. +    "https://www.peak-system.com/produktcd/Develop/PC%20interfaces/Linux/PCAN-Basic_API_for_Linux/${_pkgname}-${pkgver}.tar.gz"
  21.  )
  22. -sha256sums=(
  23. -    "95b1916a28f9dd02d2840da8369558a7e5a3a977b9e9f1046ff67616dcc8977b"
  24. -)
  25. -
  26. +sha256sums=('b88f5a73ebe6a52a58f005ae4a205c937ed317445a95de58b6872af69f1f9524')
  27.  prepare() {
  28.      # go into source directory
  29. -    cd "PCAN_Basic_Linux-${pkgver}/pcanbasic"
  30. +    cd "${_pkgname}-${pkgver}/libpcanbasic/pcanbasic"
  31.  
  32.      # add new install target into the makefile
  33.      echo -e ''                                                                  >> 'Makefile_latest.mk'
  34. @@ -32,7 +30,7 @@ prepare() {
  35.  
  36.  build() {
  37.      # go into source directory
  38. -    cd "PCAN_Basic_Linux-${pkgver}/pcanbasic"
  39. +    cd "${_pkgname}-${pkgver}/libpcanbasic/pcanbasic"
  40.  
  41.      # build libpcanbasic
  42.      make clean
  43. @@ -41,7 +39,7 @@ build() {
  44.  
  45.  package() {
  46.      # go into source directory
  47. -    cd "PCAN_Basic_Linux-${pkgver}/pcanbasic"
  48. +    cd "${_pkgname}-${pkgver}/libpcanbasic/pcanbasic"
  49.  
  50.      # create directories
  51.      install -d "${pkgdir}/usr/lib"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement