blob: ef042578a8eeade50bfc4f9594c6172110843e6f (
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
|
pkgname=sheldon-git
pkgver=r7.f67929b
pkgrel=1
pkgdesc="a very useful website"
arch=('any')
url="https://github.com/iamanuclearwarhead/sheldon"
license=('GPL-3.0-or-later')
depends=('xdg-utils')
makedepends=('git')
conflicts=('sheldon')
source=("git+https://github.com/iamanuclearwarhead/sheldon.git")
sha256sums=('SKIP')
pkgver() {
cd sheldon
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd sheldon
install -Dm644 website.html "$pkgdir/usr/share/sheldon/website.html"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -dm755 "$pkgdir/usr/bin"
printf '#!/bin/sh\nexec xdg-open /usr/share/sheldon/website.html\n' > "$pkgdir/usr/bin/sheldon"
chmod 755 "$pkgdir/usr/bin/sheldon"
}
|