summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5145ec3450bc0b148dd5abcebbbd23c8e9bdc63 (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
# Maintainer: quellen <lodgerz@gmail.com>
pkgname=epub2txt
pkgver=12.4f1cc12
pkgrel=1
pkgdesc="Extract text from EPUB documents"
arch=('i686' 'x86_64')
url="https://github.com/kevinboone/epub2txt2"
license=('GPL')
makedepends=('git')
_gitname=epub2txt2
source=("git+https://github.com/kevinboone/${_gitname}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "${_gitname}"
  make
}

package() {
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/man/man1"
cp -p "${_gitname}/epub2txt" "$pkgdir/usr/bin/"
install -Dm644 "${_gitname}/man1/epub2txt.1" "$pkgdir/usr/share/man/man1/"
}