updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / j / PKGBUILD
blobc762a63cdbffacd6729cd88d0bb0a4cd89f17f85
1 # Maintainer: Adam Hani Schakaki <krzd@krzd.net>
3 pkgname=j
4 pkgver=0.23.0
5 pkgrel=1
6 pkgdesc="A text editor written in Java"
7 arch=('any')
8 url="http://armedbear-j.sourceforge.net/"
9 license=('GPL')
10 depends=('java-runtime')
11 source=(http://downloads.sourceforge.net/armedbear-$pkgname/$pkgname-$pkgver-bin.tar.gz \
12   $pkgname.sh)
13 md5sums=('a62293bae068e85acbec3ff18f7a13e9'
14          '2d19d18e591d12181ce15e7bd23e4a7a')
16 build() {
17   cd "$srcdir"/$pkgname-$pkgver
18   # install jar file
19   install -Dm644 $pkgname.jar "$pkgdir"/opt/$pkgname/$pkgname.jar
20   # install other stuff
21   install -m755 -d "$pkgdir"/opt/$pkgname/{doc,examples,themes}
22   install -m644 doc/* "$pkgdir"/opt/$pkgname/doc/
23   install -m644 examples/* "$pkgdir"/opt/$pkgname/examples/
24   install -m644 themes/* "$pkgdir"/opt/$pkgname/themes/
25   # install launcher
26   install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname