summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd37cb3d0e74f9dbfaa9cdb93dd45cad6ade0aa8 (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
# Maintainer: ibrokemypie <ibrokemypie@bastardi.net>
pkgname=makeppkg-git
_pkgname=makeppkg
pkgver=r42.a22848e
pkgrel=2
makedepends=('rust' 'cargo' 'gcc-libs')
arch=('i686' 'x86_64')
pkgdesc="wrapper for Arch Linux's makepkg, patches source before packages are built"
url="https://github.com/ibrokemypie/makeppkg"
license=('Apache-2.0')
provides=('makeppkg')
source=('git+http://github.com/ibrokemypie/makeppkg/')
sha256sums=('SKIP')

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

build() {
  cd "${_pkgname}"
  cargo build --release
}

package() {
  cd "${_pkgname}"
  install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
}