Browse Source

testing/xfce-polkit: move from unmaintained and modernize

tmpfile 2 years ago
parent
commit
82b7374e72
1 changed files with 10 additions and 22 deletions
  1. 10
    22
      testing/xfce-polkit/APKBUILD

unmaintained/xfce-polkit/APKBUILD → testing/xfce-polkit/APKBUILD View File

@@ -8,40 +8,28 @@ arch="all"
8 8
 license="GPL2"
9 9
 depends=""
10 10
 depends_dev=""
11
-makedepends="$depends_dev libxfce4ui-dev polkit-dev glib-dev gtk+2.0-dev"
12
-install=""
13
-subpackages=""
11
+makedepends="$depends_dev libxfce4ui-dev polkit-dev glib-dev gtk+2.0-dev autoconf automake"
14 12
 source="https://github.com/ncopa/xfce-polkit/releases/download/v$pkgver/xfce-polkit-$pkgver.tar.gz"
15 13
 
16
-_builddir="$srcdir"/xfce-polkit-$pkgver
17
-prepare() {
18
-	local i
19
-	cd "$_builddir"
20
-	for i in $source; do
21
-		case $i in
22
-		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
23
-		esac
24
-	done
25
-}
26
-
14
+builddir="$srcdir/$pkgname-$pkgver"
27 15
 build() {
28
-	cd "$_builddir"
16
+	cd "$builddir"
17
+	aclocal
18
+	autoconf
19
+	automake --add-missing
29 20
 	./configure \
30 21
 		--build=$CBUILD \
31 22
 		--host=$CHOST \
32 23
 		--prefix=/usr \
33 24
 		--sysconfdir=/etc \
34 25
 		--mandir=/usr/share/man \
35
-		--libexecdir=/usr/lib/xfce4 \
36
-		|| return 1
37
-	make || return 1
26
+		--libexecdir=/usr/lib/xfce4
27
+	make
38 28
 }
39 29
 
40 30
 package() {
41
-	cd "$_builddir"
42
-	make DESTDIR="$pkgdir" install || return 1
31
+	cd "$builddir"
32
+	make DESTDIR="$pkgdir" install
43 33
 }
44 34
 
45
-md5sums="3b9b6ee32d339cd37f1f60dddcebdb6e  xfce-polkit-0.2.tar.gz"
46
-sha256sums="8947a2582dacad78cfab89b3ee390e1a7810b2457343e6db558d6ee9a872be3a  xfce-polkit-0.2.tar.gz"
47 35
 sha512sums="da0d01c8b9805efdd212d8d02cafb95a1663184b17c06b0d27553e2189e44b9d1982aa4f51d6cd74d5e0874475346609a1d7c87eba82c55d9967729f59c7c8ac  xfce-polkit-0.2.tar.gz"