summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15c0adbf3786701ac5bce8150621c913a03821e2 (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
35
36
37
# Maintainer:  Frank Seifferth <frankseifferth@posteo.net>

pkgname=abricotine-bin
_pkgname=abricotine
conflicts=("abricotine")
provides=("abricotine")
pkgver=1.1.4
pkgrel=1
pkgdesc="A markdown editor with inline preview"
arch=('x86_64')
url="http://abricotine.brrd.fr"
license=('GPL3')
depends=('libxss')
source=("https://github.com/brrd/Abricotine/releases/download/v${pkgver}/abricotine_${pkgver}_amd64.deb"
        "abricotine.desktop")
sha256sums=('01627c9eeb063c6a8f75f119e41ab014c6ec20234731043f507c9e8d7fbf6cfb'
            '164d0042ffe461ca0418709a59be29b433055589b661be4d6555c07df42b383c')

prepare() {
    cd "$srcdir"
    tar xf data.tar.xz
}

package() {
    cd "$srcdir"

    install -d "$pkgdir/opt/abricotine"
    cp -r opt/Abricotine/* "$pkgdir/opt/abricotine"

    install -d "$pkgdir/usr/bin"
    ln -s "/opt/abricotine/abricotine" "$pkgdir/usr/bin/abricotine"

    install -Dm644 "../abricotine.desktop" -t "$pkgdir/usr/share/applications/"
    install -Dm644 \
        "usr/share/icons/hicolor/48x48/apps/abricotine.png" \
        "$pkgdir/usr/share/pixmaps/abricotine.png"
}