makedeb


deb-get-git 0.3.5.r1.fb2ca3f-1


Script to manage .deb installs from 3rd party vendors/projects.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for deb-get-git.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>

_pkgname='deb-get'
pkgname='deb-get-git'
pkgver=0.3.5.r1.fb2ca3f
pkgrel=1
pkgdesc="Script to "manage" .deb installs from 3rd party vendors/projects."
arch=('all')
url="https://github.com/wimpysworld/deb-get"
license=('MIT')
depends=('bash>=4.4' 'coreutils>=8.25' 'apt' 'apt-transport-https' 'curl' 'dpkg' 'grep' 'libc-bin' 'lsb-release' 'sed' 'software-properties-common' 'sudo' 'wget')
makedepends=('git')
provides=('deb-get')
conflicts=('deb-get')
source=("git+https://github.com/wimpysworld/deb-get.git")
b2sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "%s.r%s.%s" "$(grep "^readonly VERSION" deb-get | cut -d'"' -f2)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 "deb-get" "$pkgdir/usr/bin/deb-get"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$_pkgname/license"
  install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme"
  install -Dm644 "CONTRIBUTING.md" "$pkgdir/usr/share/doc/$_pkgname/contributing"
  install -Dm644 "debian/changelog" "$pkgdir/usr/share/doc/$_pkgname/changelog"
  gzip "$pkgdir/usr/share/doc/$_pkgname/changelog"
}