summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6fc3b8cedc556a802da0a27cd06403d3a28ffea2 (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
# Maintainer: Emad Elsaid <emad.elsaid.hamed@gmail.com>
pkgname=xlog-git
_pkgname="xlog"
pkgver=0.82.0.r0.g74a83b7
pkgrel=1
pkgdesc="Xlog is a static site generator for digital gardening written in Go"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/emad-elsaid/xlog"
license=('MIT')
depends=('git')
optdepends=('pandoc-cli: To support extra formats')
makedepends=('go>=1.20')
provides=('xlog')
conflicts=('xlog')
source=(xlog::git+https://github.com/emad-elsaid/xlog.git#branch=master)
sha256sums=("SKIP")

pkgver() {
    cd "$srcdir/$_pkgname"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    export GOPATH="$srcdir"/gopath
    cd "$srcdir/$_pkgname"
    go build -modcacherw -o xlog ./cmd/xlog
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm755 xlog $pkgdir/usr/bin/xlog
}