summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56048bead8ace7c29032bbcc8c4cf9f14b086593 (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
# Maintainer: Yamada Hayao <hayao@fascode.net>
pkgname=archnews
pkgver='20220720'
pkgrel='1'
pkgdesc='Show the latest news from Arch Linux official page'
arch=('any')
url='https://gist.github.com/Hayao0819/897be45dfedb0aa4fcc2735a0831966f'
license=('WTFPL')
depends=('zenity')
source=(
    "archnews.sh::https://gist.githubusercontent.com/Hayao0819/897be45dfedb0aa4fcc2735a0831966f/raw/ArchNews.sh"
    "show-archnews.desktop::https://gist.githubusercontent.com/Hayao0819/897be45dfedb0aa4fcc2735a0831966f/raw/show-archnews.desktop"
    "FasBashLib::git+https://github.com/Hayao0819/FasBashLib.git#commit=3198a759281504ccb2af4df76fca192be9a81e17"
)
sha512sums=('SKIP' 'SKIP' 'SKIP')


build(){
    cd "$srcdir/FasBashLib"
    git submodule update --init --recursive
    ./tools.sh build single -out "$srcdir/fasbashlib.sh" URL BetterShell Parsrs Array ParseArg
}

package() {
    # Install files
    install -Dm 755 "$srcdir/archnews.sh" "$pkgdir/usr/bin/archnews"
    install -Dm 644 "$srcdir/show-archnews.desktop" "$pkgdir/usr/share/applications/show-archnews.desktop"
    install -Dm 755 "${srcdir}/fasbashlib.sh" "$pkgdir/usr/lib/archnews.sh"
}