summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65c19dedd92b4b14ae3f7647a6cf7e4bb9a5cb14 (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: WaffleFrisbee <dev at tyka dot tech>
# Contributor: kaptoxic at yahoo com
# Contributor: Henrik Hallberg <halhen at k2h dot se>
pkgname=smu-karlb-git
pkgver=1.5.r75.gbd03c59
pkgrel=1
pkgdesc="A simplified markdown dialect and interpreter"
url="https://github.com/karlb/smu"
arch=('i686' 'x86_64')
license=('MIT')
conflicts=('smu')
provides=('smu')
options=(zipman)
depends=('glibc')
source=("$pkgname::git+https://github.com/karlb/smu.git")
sha1sums=('SKIP')

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

build() {
  cd $pkgname
  make PREFIX=/usr MANPREFIX=/usr/share/man DESTDIR=$pkgdir
}

package() {
  cd $pkgname
  make PREFIX=/usr MANPREFIX=/usr/share/man DESTDIR=$pkgdir install || return 1
  install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}