summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa01aaab8eb914bb55e3bfde5a88c0ed874a1fdb (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
# Maintainer: Fredrick Brennan <copypaste@kittens.ph>

pkgname=deskew-git
_name=deskew
_user=galfar
pkgrel=1
pkgver=v1.30.r15.gb8f5ff6
pkgdesc="deskew is a command-line program which deskews images containing text"
arch=("any")
url="http://jwilk.net/software/deskew"
license=('MIT')
makedepends=('fpc')
source=("${_name}::git+https://github.com/${_user}/${_name}")
provides=('deskew')
md5sums=("SKIP")

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

package() {
  cd "$_name"
  cd Scripts
  # Change \r\n to \n
  tr -d '\r' < Compile.bat > compile.sh
  chmod +x compile.sh
  # This file just makes a dir. & calls `fpc` as of when I wrote this PKGBUILD
  ./compile.sh
  install -D "$srcdir/${_name}/Bin/deskew" "$pkgdir/usr/bin/deskew"
}