summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50b3705e2f1892d100332b1a08df32bfab44ab9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: WeepingDogel

pkgname=homepager
pkgver=1.2beta
pkgrel=1
pkgdesc='A simple homepage generator.'
url='https://github.com/NewAwkwardTools/homepager'
arch=('any')
license=('MIT')
depends=('python>=3.6' 'titlegetter' 'python-toml')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha512sums=('edefd622afa814b03a95873bdc37607d04866eef84af92ebdaa4fcf05de089eccb339c3360ea24dc6d541366cd35e8dff48c2c2b85f3cd783130eb6ff6e6ef3e')
package(){
    cd homepager-$pkgver
    install -Dm755 "homepager.py" -t "$pkgdir/usr/bin"
    mv "$pkgdir/usr/bin/homepager.py" "$pkgdir/usr/bin/homepager"
    install -Dm644 "config/config.toml" -t "$pkgdir/etc/homepager"   
    install -Dm644 "resources/style.css" -t "$pkgdir/usr/share/homepager"
    install -Dm644 "resources/index.js" -t "$pkgdir/usr/share/homepager"
    install -Dm644 "resources/searchbar.html" -t "$pkgdir/usr/share/homepager"
    install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/homepager"
}