summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85a442e758d0350fda5fa6dae807baceda94d8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: danieltetraquark

pkgname=pishrink-git
_name=pishrink
pkgver=r124.43f1a88
pkgrel=1
pkgdesc="Make your pi images smaller!"
makedepends=('git')
depends=()
license=('MIT')
arch=('any')
url="https://github.com/Drewsif/PiShrink"
source=(${pkgname}::git+$url)
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/$pkgname"
    install -Dm755 pishrink.sh "$pkgdir/usr/bin/pishrink.sh"
}