summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98558a7b83c68e93eb36691e54ef2fd8b38ed002 (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
31
32
33
34
# Maintainer: 7Ji <pugokughin@gmail.com>

_pkgbase=ampart
pkgname=${_pkgbase}-git
pkgver=1.3.r12.6f90ddd
pkgrel=2
pkgdesc="A partition tool to modify Amlogic's proprietary eMMC partition format and FDT"
arch=('x86_64' 'aarch64')
url="https://github.com/7Ji/${_pkgbase}"
license=('GPL3')
depends=('glibc' 'zlib')
makedepends=('git')
conflicts=("${_pkgbase}")
provides=("${_pkgbase}=${pkgver}")
source=(
  "${_pkgbase}::git+https://github.com/7Ji/${_pkgbase}.git"
)
sha256sums=(
  'SKIP'
)

pkgver() {
  printf "%s" "$(git --git-dir "${_pkgbase}/.git" describe --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
  cd "${srcdir}/${_pkgbase}"
  make clean
  make
}

package() {
  install -Dm755 "${srcdir}/${_pkgbase}/${_pkgbase}" -t "${pkgdir}"/usr/bin/
}