diff options
author | TurtleRuss | 2023-11-06 20:52:56 +0800 |
---|---|---|
committer | TurtleRuss | 2023-11-06 20:52:56 +0800 |
commit | 1df9ce2e2b2bd62d9809c35694f9743ad6f6dc4d (patch) | |
tree | 0a7fe2c6dbe88f6f58eb0ea686c2086f6713f5f8 | |
download | aur-1df9ce2e2b2bd62d9809c35694f9743ad6f6dc4d.tar.gz |
init hustmirror
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..32811fef1e6a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = hustmirror-cli + pkgdesc = A mirror tool for HUST students + pkgver = 0.2.0.rc + pkgrel = 1 + url = https://gitee.com/dzm91_hust/hustmirror-cli.git + arch = x86_64 + license = GPL + makedepends = git + makedepends = make + depends = python3 + provides = hustmirror-cli + conflicts = hustmirror-cli + source = git+https://gitee.com/dzm91_hust/hustmirror-cli.git + md5sums = SKIP + +pkgname = hustmirror-cli diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b3a44d70aa86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# The following guidelines are specific to BZR, GIT, HG and SVN packages. +# Other VCS sources are not natively supported by makepkg yet. + +# Maintainer: Your Name <youremail@domain.com> +pkgname=hustmirror-cli # '-bzr', '-git', '-hg' or '-svn' +pkgver=0.2.0.rc +pkgrel=1 +pkgdesc="A mirror tool for HUST students" +arch=("x86_64") +url="https://gitee.com/dzm91_hust/hustmirror-cli.git" +license=('GPL') +depends=('python3') +makedepends=('git' 'make') # 'bzr', 'git', 'mercurial' or 'subversion' +provides=("${pkgname%}") +conflicts=("${pkgname%}") +source=('git+https://gitee.com/dzm91_hust/hustmirror-cli.git') +md5sums=('SKIP') +# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for +# a description of each element in the source array. + +prepare() { + echo "$srcdir" + echo ${pkgname%-git} + mkdir -p "$srcdir/${pkgname%-git}" + cd "$srcdir/${pkgname%-git}" +} + +build() { + cd "$srcdir/${pkgname%-git}" + make +} + +check() { + cd "$srcdir/${pkgname%-git}" + #make test + echo "Test Done!" +} + +package() { + cd "$srcdir/${pkgname%-git}" + sudo cp ./output/hustmirror-cli "/usr/bin/hustmirror-cli" +} |