summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 695e602e88233668d1c3049d6673c1e7d7af4d86 (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
_pkgname=sailfish-patch
pkgname=$_pkgname-git
pkgver=2.7.0.1.r19.gd79d9a8
pkgrel=1
pkgdesc='helper tool for developing SailfishOS patches'
arch=('any')
url="https://github.com/ichthyosaurus/sailfish-patch"
license=('GPL3')
depends=('git' 'openssh' 'sed' 'xclip' 'rpm'  'rpmextract' 'cpio' 'tar' 'html-xml-utils' 'html2text' 'pngcrush' 'pngquant' 'imagemagick')
makedepends=('git')
provides=("sailfish-patch=$pkgver")
conflicts=("sailfish-patch")
source=("git+https://github.com/ichthyosaurus/sailfish-patch.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname

  git describe --long --tags --exclude release | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $srcdir/$_pkgname

  install -Dm755 sailfish-patch -t "$pkgdir/usr/bin/"
}