Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将其打包到 AUR 仓库了 #29

Open
taotieren opened this issue Jul 15, 2021 · 1 comment
Open

将其打包到 AUR 仓库了 #29

taotieren opened this issue Jul 15, 2021 · 1 comment

Comments

@taotieren
Copy link

AUR WifiAssist 便于 Arch 系用户下载安装

# Contributor: taotieren <[email protected]>

pkgname=wifiassist
_pkgname=WifiAssist
pkgver=0.8
pkgrel=1
pkgdesc="The easy way to use Wifi through PC."
arch=('any')
url="https://github.com/lzjqsdd/WifiAssist"
license=('BSD')
provides=(${pkgname})
conflicts=(${pkgname} ${pkgname}-git)
#replaces=(${pkgname})
depends=( 'qt5-tools' 'qt5-base' 'qt5-declarative' 'qt5-webkit' 'sqlite')
makedepends=('qconf')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('0284688369ef17af12db1f283c43de9316b9609feef10488c786d96770e5250b')

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    qmake ./${_pkgname}.pro
    make
}

package() {
    install -Dm0755 "${srcdir}/${_pkgname}-${pkgver}/INSTALL/${_pkgname}" "${pkgdir}/usr/local/${_pkgname}/${_pkgname}"
    install -Dm0644 "${srcdir}/${_pkgname}-${pkgver}/INSTALL/bin/${_pkgname}.desktop" "${pkgdir}/usr/local/share/applications/${_pkgname}.desktop"
    install -Dm0644 "${srcdir}/${_pkgname}-${pkgver}/INSTALL/etc/com.lzjqsdd.WifiAssist.policy" "${pkgdir}/usr/share/polkit-1/actions/com.lzjqsdd.WifiAssist.policy"
    cd "${srcdir}/${_pkgname}-${pkgver}/INSTALL/"
    cp -r bin/ etc/ img/ "${pkgdir}/usr/local/${_pkgname}/"
    install -dm0755 "${pkgdir}/usr/bin"
    ln -sf "/usr/local/WifiAssist/WifiAssist" "${pkgdir}/usr/bin/WifiAssist"

}
@taotieren
Copy link
Author

希望作者能将开源协议补充完善

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant