summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14c12f127b4b339281dff166bc24c2681574e88e (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
pkgname=typecho
pkgver=1.2.1
pkgrel=1
pkgdesc='A PHP Blogging Platform'
arch=(any)
url='https://typecho.org/'
license=(GPL)
install="$pkgname.install"
depends=("php"
	 "php-fpm"
	 "php-cgi")
optdepends=('apache: Web server'
	    'nginx: Web server'
            'mariadb: Database server'
	    'sqlite: Database server'
	    'php-sqlite: PHP extension for sqlite'
	    'postgresql: Database server'
	    'php-pgsql: PHP extension for postgresql'
           )
source=("https://github.com/typecho/typecho/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('63fad7919d28b31cc4a82031826ea514a326cc86925121832c8c32e1d35614ec2cf728b68fc932a716fc6ff1de6508d8db77ada2806c6f4516cd3e76f2ca32e7')

package() {
  mkdir -p "$pkgdir/usr/share/webapps/$pkgname/usr/uploads"
  cd "$srcdir"/typecho-${pkgver}
  cp -r * "$pkgdir/usr/share/webapps/$pkgname"
}