updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mypaint-brushes-deevad / PKGBUILD
blobba4b090a6beba20df86cc72f81528a3c226d6ffa
1 # Contributor: N30N <archlinux@alunamation.com>
3 pkgname="mypaint-brushes-deevad"
4 pkgver=4
5 pkgrel=1
6 pkgdesc="Mypaint brushkit by David Revoy"
7 url="http://www.davidrevoy.com/?article55/mypaint-v4-brushkit"
8 license=("CCPL:by")
9 arch=("any")
10 depends=("mypaint>=0.9")
11 source=("deevad${pkgver}-mypaint-brushkit.zip::http://www.davidrevoy.com/?telechargement/Li4vLi4vZGF0YS9kb2N1bWVudHMvZGVldmFkNC1teXBhaW50LWJydXNoa2l0LnppcCowY2NlYzE,")
12 md5sums=("5ba4c6818e40c02a6cadffd85b3428c3")
13 install="${pkgname}.install"
15 build() {
16         cat <<-EOF > "${startdir}/${pkgname}.install"
17                 pre_install() {
18                         echo "# ${pkgname} start.
19                         $(cat ${srcdir}/order.conf | sed "2,$ s|^|deevad${pkgver}/|")
20                         # ${pkgname} end." >> /usr/share/mypaint/brushes/order.conf
21                 }
23                 pre_upgrade() {
24                         sed "/^# ${pkgname} start.$/,/^# ${pkgname} end.$/d" -i /usr/share/mypaint/brushes/order.conf
25                 }
27                 pre_remove() {
28                         pre_upgrade $1
29                 }
30         EOF
33 package() {
34         install -d "${pkgdir}/usr/share/mypaint/brushes/deevad${pkgver}/"
35         install -m644 ${srcdir}/*.{png,myb} \
36                 "${pkgdir}/usr/share/mypaint/brushes/deevad${pkgver}/"
39 # vim: set noet ff=unix: