summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 040bb1b473e5abbc5515e1f7e451284a1051ad55 (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: Nihilazo <nihilazo at protonmail dot com>
pkgname=plptools-git
gitname="plptools"
pkgrel=2
pkgdesc="Utilities for communication with EPOC PDAs, e.g. mounting via FUSE"
pkgver=rel.1.0.12.r51.g56dc15d
arch=('i686' 'x86_64')
url="https://github.com/rrthomas/plptools"
license=('GPL2')
depends=('fuse')
source=(plptools::git+https://github.com/rrthomas/plptools)
makedepends=('git' 'make' 'automake')
md5sums=(SKIP)

pkgver() {
  cd "$gitname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$srcdir/$gitname"
}

build() {
  cd "$srcdir/$gitname"
  autoreconf -i
  ./configure --prefix=/usr --sbindir=/usr/bin
  make
}

package() {
  cd "$srcdir/$gitname"
  make DESTDIR="$pkgdir/" install
}