blob: d7756ee14f6e899ad52a3f7410559c04209a57f5 (
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 63612 2012-02-05 12:00:25Z 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:
|