summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed5357b5f130aec93946cac1695252009e227c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=pishrink-git
_name=pishrink
pkgver=r58.76d2254
pkgrel=1
pkgdesc="Make your pi images smaller!"
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"
}