blob: 3f7a3fb9af6198bd83cdf5084d747f8dabaa9ba4 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Frédéric Logier <fredix@protonmail.com>
pkgname=gibson
pkgver=0.5.1
pkgrel=1
epoch=
pkgdesc="A simple markdown go blog"
arch=("any")
url="https://codeberg.org/fredix/gibson"
license=('GPL-3.0-or-later')
groups=()
depends=(go)
makedepends=()
checkdepends=()
optdepends=()
provides=(gibson)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$url/archive/v$pkgver.tar.gz")
noextract=()
sha256sums=("SKIP")
validpgpkeys=()
prepare() {
cd "$pkgname"
export GOPATH=/tmp/go
export GOBIN=/tmp/go/bin
}
build() {
cd "$pkgname"
export GOPATH=/tmp/go
export GOBIN=/tmp/go/bin
export PATH=$GOBIN:$PATH
pwd
./build.sh $pkgver
}
check() {
cd "$pkgname"
}
package() {
cd "$pkgname"
install -Dm755 --no-target-directory "gibson" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "templates"/* -t "${pkgdir}/usr/share/gibson/templates/"
install -Dm755 "markdown/pages"/* -t "${pkgdir}/usr/share/gibson/markdown/pages"
install -Dm755 "markdown/textes"/* -t "${pkgdir}/usr/share/gibson/markdown/textes"
install -Dm755 "markdown/posts"/* -t "${pkgdir}/usr/share/gibson/markdown/posts"
install -Dm755 --no-target-directory "gibson.toml.example" "${pkgdir}/usr/share/gibson/gibson.toml"
cp -ar static "${pkgdir}/usr/share/gibson"
}
|