summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1e7dccb20f51337a07bcf4131faa6186bee63bc (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
# Maintainer: Moritz Sauter <moritz.sauter7+aur at gmail dot com>

pkgname=tiny-remarkable-scripts-git
pkgver=r5.6d8075d
pkgrel=1
pkgdesc="A set of tiny remarkable scripts to pull and push pdfs via ssh"
arch=("any")
url="https://github.com/mosauter/remarkable_scripts"
license=('MIT')
depends=("imagemagick" "util-linux" "python-rm2pdf")
optdepends=("python-rmrl: for v5 rendering")
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
    "${pkgname%-git}::git+$url"
)
b2sums=(
    'SKIP'
)

pkgver() {
    cd "$srcdir/${pkgname%-git}"

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

package() {
    cd "$srcdir/${pkgname%-git}"

    install -Dm755 "pdf2remarkable" "$pkgdir/usr/bin/pdf2remarkable"
    install -Dm755 "remarkable2pdf" "$pkgdir/usr/bin/remarkable2pdf"
}