summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7245643ba8f29f3a66f4283c6f0339e243e8bea6 (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
# Maintainer: dakataca <馃惉danieldakataca@gmail.com>
pkgname=android-tethering
pkgver=20230919
url="https://gitlab.com/dakataca/$pkgname.git"
source=("git+$url")
pkgrel=1
pkgdesc="systemd-networkd plugin to share Internet connection from your Android phone to your computer via USB cable"
arch=('x86_64')
license=('MIT')
makedepends=('git')
depends=('usb_modeswitch' 'net-tools')
sha256sums=('SKIP')  # 'makepkg -g' to generate it.

# Funci贸n de construcci贸n del paquete
pkgver() {
    cd "$srcdir/$pkgname"
    git log -1 --format="%cd" --date=short | tr -d -
}

# Funci贸n de compilaci贸n e instalaci贸n
package() {
    cd "$srcdir/$pkgname"
    # Instala el script.
    install -Dm755 android-tethering "$pkgdir/usr/bin/android-tethering"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    # Instalar m贸dulos.
    cp -r android-tethering-modules/ "$pkgdir/usr/bin/"
}

# Test:
# rm -rf *.{zst,gz} pkg/ src/ android-tethering/