summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60b0d2db8d0f0c540855df99bb6f63cb3d9a62e0 (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
pkgname=tgfs
pkgver=0.1
pkgrel=2
pkgdesc="user-space filesystem for Telegram attachments"
arch=('i686' 'x86_64')
url="https://github.com/Firemoon777/tgfs"
license=('GPL3')
depends=('libconfig' 'libevent' 'jansson' 'fuse2')
makedepends=('git')
conflicts=('tgfs')
provides=('tgfs')

source=("$pkgname"::'git+https://github.com/Firemoon777/tgfs')
sha256sums=('SKIP')

build() {
    cd "$srcdir/$pkgname"
    git submodule update --init --recursive
    ./configure
    make
}

package() {
    cd "$srcdir/$pkgname"
    install -Dm755 bin/telegram-tgfs ${pkgdir}/usr/bin/telegram-tgfs
    install -Dm755 bin/tgfs ${pkgdir}/usr/bin/tgfs
}