summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f525430bd32025da5334ac95c6ec6323901fc22c (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
# Maintainer: WeepingDogel <weepingdogel@gmail.com>

pkgname=titlegetter
pkgver=2.2.5
pkgrel=1
pkgdesc='A little tool to get the title of the websites and format the title and the links to markdown or html.'
url='https://github.com/WeepingDogel/TitleGetter'
arch=('any')
license=('MIT')
depends=('python>=3.6' 'python-requests' 'python-lxml' 'python-beautifulsoup4' 'python-toml')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha512sums=('b34ebfd90d5822f5454150d0ae07239d7b48531a6fe7ae27f7231452d8ff1902765ec410137a7d48e3990c8d52a1bf021afd815288eda922609f531b3582b7b4')
package(){
    cd TitleGetter-$pkgver
    install -Dm755 "titlegetter.py" -t "$pkgdir/usr/bin"
    ln -s "titlegetter.py" "$pkgdir/usr/bin/titlegetter"
    install -Dm644 "config/config.toml" -t "$pkgdir/etc/titlegetter"
    install -Dm644 "config/version" -t "$pkgdir/etc/titlegetter"
    mv "$pkgdir/etc/titlegetter/version" "$pkgdir/etc/titlegetter/.version"
    install -Dm644 "Pics/2020-09-13_00-17.png" -t "$pkgdir/usr/share/titlegetter/example"
    install -Dm644 "Pics/2020-09-13_00-28.png" -t "$pkgdir/usr/share/titlegetter/example"
    install -Dm644 "Pics/TitleGetter.png" -t "$pkgdir/usr/share/titlegetter/Pics"
    install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/titlegetter"
}