summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e967c282d00171687912c93cb973b6b07df7e3e2 (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-hg
_hgname=app-deskew
_bbuser=galfar
pkgrel=2
pkgver=30.2c46db9991ab
pkgdesc="deskew is a command-line program which deskews images containing text"
arch=("any")
url="http://jwilk.net/software/deskew"
license=('MIT')
depends=('python')
makedepends=('mercurial' 'fpc')
source=("${_hgname}::hg+https://bitbucket.org/${_bbuser}/${_hgname}")
provides=('deskew')
md5sums=("SKIP")

pkgver() {
  cd "$_hgname"
  echo "$(hg identify -n).$(hg identify -i)"
}

package() {
  cd "$_hgname"
  # 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/${_hgname}/Bin/deskew" "$pkgdir/usr/bin/deskew"
}