diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba1469798e11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Simon Hanna<simon DOT Hanna AT serve-me DOT info> +pkgname=filebin +pkgver=0.9.2 +pkgrel=1 +pkgdesc="A pastebin service written in PHP" +arch=('any') +url="https://wiki.server-speed.net/projects/filebin" +license=('AGPL') + +depends=('php' + 'pygmentize' + 'perl-text-markdown' + 'python-ansi2html' + 'php-gd' + 'imagemagick' + 'qrencode' +) +backup=('etc/webapps/filebin/config-local.php' + 'etc/webapps/filebin/contact-info.php' + 'etc/webapps/filebin/database.php' + 'etc/webapps/filebin/memcached.php' +) +install=filebin.install +options=('!strip' 'emptydirs') +source=("https://github.com/Bluewind/filebin/archive/${pkgver}.tar.gz" + 'filebin-nginx.conf' +) +sha256sums=('SKIP' + '5500d423d798478bf4f7bb0a147fe8a42b00e843513dd70665ec81f304a6c729') + +package() { + mkdir -p ${pkgdir}/usr/share/webapps + mkdir -p ${pkgdir}/etc/webapps/filebin + cp -ra ${srcdir}/filebin/ ${pkgdir}/usr/share/webapps/filebin/ + cp filebin-nginx.conf ${pkgdir}/usr/share/webapps/filebin + cd ${pkgdir}/usr/share/webapps/filebin + cp application/config/example/{config-local,database,memcached}.php ${pkgdir}/etc/webapps/filebin + ln -s /etc/webapps/filebin/{config-local,database,memcached}.php application/config + cp data/local/examples/contact-info.php ${pkgdir}/etc/webapps/filebin + ln -s /etc/webapps/filebin/contact-info.php data/local + + # removing unnecessary data for a production environment + rm -rf .git + rm -rf application/third_party/{test-more-php,mockery} + rm -rf application/tests + find . -name \*.gitignore -type f -delete +} |