Advertisement
Guest User

PKGBUILD

a guest
Aug 14th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | None | 0 0
  1. # Maintainer: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
  2.  
  3. pkgname=nautilus-ideviceinfo-git
  4. _gitname=nautilus-ideviceinfo
  5. pkgver=0.1.0.r106.gbc637ee
  6. pkgrel=1
  7. pkgdesc='Show information about your iOS device'
  8. arch=('i686' 'x86_64')
  9. url='https://gitlab.gnome.org/GNOME/nautilus-ideviceinfo'
  10. license=('GPL')
  11. depends=('glib2' 'gtk3' 'libplist' 'libimobiledevice' 'libnautilus-extension')
  12. optdepends=('mobile-broadband-provider-info: to show mobile carrier'
  13.             'libgpod>=0.7.90: to enable detailed audio/video information')
  14. makedepends=('intltool')
  15. options=(!libtool)
  16. source=('nautilus-ideviceinfo.patch'
  17.     "git+https://gitlab.gnome.org/GNOME/${_gitname}.git")
  18. sha256sums=('5ef2d9e77638e1a1f1cb0b6ac59f85b76ce8290e4c98c627a65202468ac9ef1c'
  19.             'SKIP')
  20.  
  21. pkgver() {
  22.     cd "${srcdir}/${_gitname}"
  23.  
  24.     # Use the tag of the last commit
  25.     git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
  26.  
  27.     # Use current date
  28.     # date +%Y%m%d
  29. }
  30.  
  31. prepare() {
  32.     cd "${srcdir}/${_gitname}"
  33.     patch --forward --strip=1 --input="${srcdir}/nautilus-ideviceinfo.patch"
  34. }
  35.  
  36. build() {
  37.     cd ${srcdir}/${_gitname}
  38.  
  39.     ./autogen.sh --prefix=/usr
  40.     make
  41. }
  42.  
  43. package() {
  44.     cd "${srcdir}/${_gitname}"
  45.  
  46.     make DESTDIR="${pkgdir}" install
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement