summaryrefslogtreecommitdiffstats
path: root/gparted/Pkgfile
blob: 1ef4149ecbbc80d8c365a3c78413308942093a2e (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
# Description: Gestionnaire de partitions 
# URL: http://gparted.sourceforge.net/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gtk, parted, gtkmm, libsigc++, ntfsprogs, lvm2, gnome-doc-utils
# Run on: gtk,parted,gtkmm,libsigc++,ntfsprogs,lvm2,mtools,dosfstools

name=gparted
version=0.12.1
release=1
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.bz2
	org.archlinux.pkexec.gparted.policy)

build() {
	cd $name-$version
	./configure --prefix=/usr \
		--disable-scrollkeeper \
		--disable-doc
	make
	make DESTDIR=$PKG install

	install -Dm644 $SRC/org.archlinux.pkexec.gparted.policy $PKG/usr/share/polkit-1/actions/org.archlinux.pkexec.gparted.policy

	# Install launcher script
	mkdir -p $PKG/usr/bin
	cat > $PKG/usr/bin/gparted-pkexec << "EOF"
#!/bin/sh
pkexec "/usr/sbin/gparted" "$@"
EOF
	chmod 755 $PKG/usr/bin/gparted-pkexec

	# Modify desktop file
	sed -i -e "s/Exec=.*/Exec=gparted-pkexec/" $PKG/usr/share/applications/gparted.desktop
}