summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1a5a6a373cf1fbd9ec79459633f8d7668f0e0f2 (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
# Maintainer: Furdox <furdox at furdox dot tk>
pkgname=meow
pkgver=1.0
pkgrel=1
pkgdesc="A simple python-based script that generates a random cat."
arch=('any')
license=('GPL')
source=('meow.sh' 'cats.txt')
depends=('python')
sha256sums=('SKIP' 'SKIP')

package() {
    install -d "$pkgdir/etc/meow/"
    install -Dm755 "$srcdir/meow.sh" "$pkgdir/usr/bin/meow"
    install -Dm644 "$srcdir/cats.txt" "$pkgdir/etc/meow/cats.txt.default"
    cats="/etc/meow/cats.txt"
    nocats="$pkgdir/etc/meow/cats.txt.default"

    if [ ! -f "$cats" ]; then
    	sudo cp "$nocats" "$pkgdir/etc/meow/cats.txt"
    fi
    if [ -f "$cats" ]; then
    	sudo cp "$cats" "$pkgdir/etc/meow/cats.txt"
    fi
}