summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd100c9813890239b66f379eb9a528eddbc21e63 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=wordpress-git
pkgver=5.5.1.r489.ge4fadc6f4d
pkgrel=1
pkgdesc="Blog tool, publishing platform and CMS"
arch=('any')
url="https://wordpress.org/"
license=('GPL')
depends=('php')
makedepends=('git')
optdepends=('apache: Web server for serving WordPress'
            'mariadb: Database server'
            'nginx: Web server for serving WordPress')
provides=('wordpress')
conflicts=('wordpress')
install=wordpress.install
source=("git://develop.git.wordpress.org/")
sha256sums=('SKIP')


pkgver() {
  cd "develop"

  _tag=$(git tag -l --sort -v:refname | head -n1)
  _rev=$(git rev-list --count $_tag..HEAD)
  _hash=$(git rev-parse --short HEAD)
  printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash"
}

package() {
  cd "develop"

  install -d "$pkgdir/usr/share/webapps/wordpress"
  cp -r "src"/* "$pkgdir/usr/share/webapps/wordpress"
}