summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbe4867d3d994a08e6d8a0e8628a9c21a26fcac8 (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
# Maintainer: Erik Sonnleitner <es@delta-xi.net>
pkgname=ripme-git
_pkgname=ripme
pkgver=1.5.14.r0.g8064772
pkgrel=2
pkgdesc="Automated picture album downloader for various websites"
arch=('i686' 'x86_64')
url="https://github.com/RipMeApp/ripme.git"
license=('MIT')
depends=('java-runtime-headless')
makedepends=('git' 'maven')
source=('ripme::git+http://github.com/ripmeapp/ripme#branch=master')
provides=('ripme')
conflicts=('ripme')
md5sums=('SKIP')

build() {
	cd "$_pkgname"
	mvn clean compile assembly:single
	echo -e "#!/bin/bash\njava -jar /usr/share/java/${pkgname}-${pkgver}.jar" >> ${srcdir}/${_pkgname}/ripme.sh
}

package() {
	install -D -m644 ${srcdir}/${_pkgname}/target/ripme*-jar-with-dependencies.jar ${pkgdir}/usr/share/java/${pkgname}-${pkgver}.jar
	install -D -m755 ${srcdir}/${_pkgname}/ripme.sh ${pkgdir}/usr/bin/ripme
}

pkgver() {
	cd "$_pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}