summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08869abb5a0058fb5ca777b357016661b7d8bbba (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
# Maintainer: Pouyan Heyratpour <me@pouyan.dev>

pkgname=medad-git
pkgver=1.0.0
pkgrel=2
pkgdesc="Content publisher - Converts Markdown documents to HTML files and uploads them to the server"
arch=('any')
url="https://pattack.github.io/medad/"
license=('GPL3')
depends=()
makedepends=('go' 'goreleaser')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pattack/medad/archive/v${pkgver}.tar.gz)
md5sums=('aa403b3920f0b59992e21e7925fbaaad')
provides=('medad')
conflicts=('medad')

build() {
  cd "${pkgname%-git}-${pkgver}"

  goreleaser build --snapshot --clean --single-target -o dist/medad
}

package() {
  cd "${pkgname%-git}-${pkgver}"

  install -Dm 755 dist/medad -t "${pkgdir}/usr/bin"
}