summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5050222b5571c084e26692f2a251382d36b86904 (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
27
28
29
30
# Prev. Maintainer: Pavel Horniak <gouster4@gmail.com>
# Maintainer: Takumi <dGFrdW9oQHR1dGEuaW8K | base64 -d>
pkgname=newflasher-git
_pkgname=newflasher
pkgver=r196.3ee92ee
pkgrel=1
pkgdesc='This experimental software allows you to flash firmwares acquired through XperiFirm to Sony phones including and newer than the XZ Premium.'
arch=('x86_64')
license=('MIT')
url="https://forum.xda-developers.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426"
depends=('zlib' 'expat')
makedepends=('git')
source=(git+https://github.com/newflasher/newflasher)
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/${_pkgname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir"/${_pkgname}
    make
}

package(){
  # Moving everything to pkg/.
  cd "$srcdir"/${_pkgname}
  install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}