aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Berthault <justin.berthault@zaclys.net>2020-05-10 14:49:39 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-05-19 12:57:18 +0000
commit4039c1e9599356fa917f8ee13b936b1725ed83ef (patch)
tree153fc1f7576e4c4fa6e1fef127c6a690d5a13d90
parent8ca4af9e899cc7a78f41222a2b03a9e2816e247b (diff)
downloadaports-4039c1e9599356fa917f8ee13b936b1725ed83ef.tar.gz
aports-4039c1e9599356fa917f8ee13b936b1725ed83ef.tar.bz2
aports-4039c1e9599356fa917f8ee13b936b1725ed83ef.tar.xz
community/udevil: modernize
-rw-r--r--community/udevil/APKBUILD33
1 files changed, 10 insertions, 23 deletions
diff --git a/community/udevil/APKBUILD b/community/udevil/APKBUILD
index 0097c80817..8653afcb8e 100644
--- a/community/udevil/APKBUILD
+++ b/community/udevil/APKBUILD
@@ -2,46 +2,33 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=udevil
pkgver=0.4.4
-pkgrel=2
+pkgrel=3
pkgdesc="Mount / unmount removable devices without a password (udisks alternative)"
url="http://ignorantguru.github.io/udevil"
arch="all"
license="GPL-3.0-or-later"
-makedepends="$depends_dev glib-dev eudev-dev intltool"
+makedepends="eudev-dev glib-dev intltool"
install="$pkgname.pre-install"
subpackages="$pkgname-lang $pkgname-doc"
pkggroups="plugdev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/IgnorantGuru/$pkgname/archive/$pkgver.tar.gz"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+source="$pkgname-$pkgver.tar.gz::https://github.com/IgnorantGuru/udevil/archive/$pkgver.tar.gz"
build() {
- cd "$_builddir"
./configure \
--prefix=/usr \
- --disable-systemd || return 1
- make || return 1
+ --disable-systemd
+ make
}
package() {
- cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
- chown root:plugdev "$pkgdir"/usr/bin/udevil || return 1
- chmod u+s,go-s,o-x "$pkgdir"/usr/bin/udevil # remove SUID bit
+ make DESTDIR="$pkgdir" install
+ chown root:plugdev "$pkgdir"/usr/bin/udevil
+ chmod u+s,go-s,o-x "$pkgdir"/usr/bin/udevil # remove SUID bit
mkdir -p "$pkgdir/usr/share/apk-tools/$pkgname"
# chmod ugo-s,ugo+x "$pkgdir"/usr/bin/udevil #remove SUID bit completely
# post-install message
- mkdir -p "$pkgdir/usr/share/doc/$pkgname"
- cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"
+ cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
To mount / unmount devices without the root password: add your user account to the 'plugdev' group.
Optional dependencies: