diff options
author | Martina Pietruschka | 2015-06-08 23:09:14 +0000 |
---|---|---|
committer | Martina Pietruschka | 2015-06-08 23:09:14 +0000 |
commit | 4d2b1a48f3b87e8e69d7e45a5c4368ed9899d7f8 (patch) | |
tree | 1aca7e2677d40cc5bc6caa431975402a3a38d06e /PKGBUILD | |
download | aur-4d2b1a48f3b87e8e69d7e45a5c4368ed9899d7f8.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dadb88d991d3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +#Maintainer: MartiMcFly martimcfly@autorisation.de +#Maintainer: Yahya Mohajer <yaya_2013 {AT} yahoo {DOT} com > + +pkgname=nexus +pkgver=2.11.3 +patchver=01 +pkgrel=1 +pkgdesc="A Maven Repository Manager. Nexus 2" +url="http://nexus.sonatype.org" +arch=('armv6h' + 'armv7h' + 'i686' + 'x86_64') +license=('GPL3') +depends=('java-environment') +optdepends=('apache: a full featured webserver' + 'maven: a java project management and project comprehension tool') + +install=nexus.install +backup=(opt/nexus/bin/jsw/conf/wrapper.conf) +conflicts=( 'nexus2') +provides=('java-nexus') +options=(!strip !docs) + +source=("http://www.sonatype.org/downloads/nexus-${pkgver}-${patchver}-bundle.tar.gz" + 'http://wrapper.tanukisoftware.com/download/3.5.26/wrapper-delta-pack-3.5.26.tar.gz' + 'nexus' + 'nexus.service') + +md5sums=('faa9eb422ae52a9beafef87673da1965' + '8c1e180aba2b3991bcf107e899a96cbd' + 'fee6289e0ee48ee5705da54660f7595d' + 'ac7c0c60bb3c77ff67965ec160ef2517') + +package() { + cd ${srcdir} + + # Create directories + install -d $pkgdir/opt/nexus + + # move documentation to the right location + mkdir -p $pkgdir/usr/share/doc/nexus + install $srcdir/nexus-$pkgver-$patchver/*.txt $pkgdir/usr/share/doc/nexus + rm $srcdir/nexus-$pkgver-$patchver/*.txt + + # move example configuration to the right location + mkdir -p $pkgdir/usr/share/doc/nexus/conf + + mkdir -p $pkgdir/opt/sonatype-work + mkdir -p $pkgdir/opt/nexus/run + + # copy the source to the final directory + cp -a $srcdir/nexus-${pkgver}-${patchver}/* $pkgdir/opt/nexus || return 1 + install $srcdir/nexus $pkgdir/opt/nexus/bin/nexus + + #install $srcdir/nexus.properties $pkgdir/opt/nexus/conf/nexus.properties || return 1 + + install -Dm644 "${srcdir}/nexus.service" "${pkgdir}/usr/lib/systemd/system/nexus.service" + +}
\ No newline at end of file |