blob: b1f2083dda4ac928ef57bcd6fc0c7ea28568e5fa (
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
32
33
34
35
36
37
38
39
40
41
42
43
|
# $Id: PKGBUILD 63150 2012-01-30 18:59:19Z ibiru $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Simon Parzer <simon.parzer@gmail.com>
pkgname=grafx2
pkgver=2.3
pkgrel=3
pkgdesc="Pixelart-oriented painting program"
arch=('x86_64' 'i686')
url="http://code.google.com/p/grafx2/"
license=('GPL2')
install=grafx2.install
depends=('sdl_ttf' 'sdl_image' 'lua' 'desktop-file-utils')
source=("http://grafx2.googlecode.com/files/$pkgname-$pkgver.1781-src.tgz"
"grafx2.desktop")
md5sums=('916a35c4762e85b4210a1041fbbfd830'
'9b3ecb5c2d44b987d65257184f46e6c4')
build() {
cd "$srcdir/$pkgname/src"
msg2 "Compiling..."
make
}
package() {
cd "$srcdir/$pkgname/src"
msg2 "Packaging files..."
make prefix="/usr" DESTDIR="$pkgdir" install
msg2 "Packaging shortcut..."
install -Dm644 "$srcdir/$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
msg2 "Packaging documentation..."
install -Dm644 "$srcdir/$pkgname/doc/README.txt" \
"$pkgdir/usr/share/doc/$pkgname/readme.txt"
msg2 "Packaging license..."
install -Dm644 "$srcdir/$pkgname/doc/gpl-2.0.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
msg2 "Cleaning up..."
rmdir "$pkgdir/usr/share/grafx2/scripts/libs"
}
# vim:set ts=2 sw=2 et:
|