aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16d09479c56e13ce1a2df96f1f56b6904105c579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Bert-Jan Fikse <s4mpl3d@gmail.com>
pkgname=wwd-dde
pkgver=0.2.4
pkgrel=1
epoch=
arch=(any)
url="https://github.com/whatwedo/dde"
depends=('docker' 'docker-compose' 'mutagen.io-bin' 'make')
source=("https://codeload.github.com/whatwedo/dde/zip/v${pkgver}")
md5sums=('7df9878521f62ee80b07e7dfb6e05643')
pkgdesc="Local development environment toolset based on Docker supporting multiple projects."


package () {
    mkdir -p ${pkgdir}/opt/whatwedo/dde
    mkdir -p ${pkgdir}/usr/bin
    sed -i 's/\- \.\/data/\- ~\/\.dde\/data/g' ${srcdir}/dde-${pkgver}/docker-compose.yml
    sed -i 's/\$(ROOT_DIR)\/data/\~\/\.dde\/data/g' ${srcdir}/dde-${pkgver}/Makefile
    cp -rf ${srcdir}/dde-${pkgver}/* ${pkgdir}/opt/whatwedo/dde
    echo 'make -f /opt/whatwedo/dde/Makefile "$@"' > ${pkgdir}/usr/bin/dde
    chmod 755 ${pkgdir}/usr/bin/dde
}