[Perf] Use submodule
This commit is contained in:
parent
c480cf51fa
commit
ec9d4340cc
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[submodule "AURPKG/smiley-sans"]
|
||||||
|
path = packages/smiley-sans
|
||||||
|
url = ssh://aur@aur.archlinux.org/smiley-sans.git
|
||||||
|
[submodule "AURPKG/smiley-sans-bin"]
|
||||||
|
path = packages/smiley-sans-bin
|
||||||
|
url = ssh://aur@aur.archlinux.org/smiley-sans-bin.git
|
7
README.md
Normal file
7
README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Pkgbulids
|
||||||
|
|
||||||
|
此处存放了个人修改/提交的部分 ArchLiunx PKGBUILD, 方便对他们统一管理.
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
* [AUR 个人帐户页面](https://aur.archlinux.org/account/Puqns67)
|
1
packages/smiley-sans
Submodule
1
packages/smiley-sans
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit c9f476406a133fbe19807a13d2cf7929f1de747d
|
1
packages/smiley-sans-bin
Submodule
1
packages/smiley-sans-bin
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 68a6e50b375e25ebc394a8644fdf12f0ed0d1f6e
|
@ -1,33 +0,0 @@
|
|||||||
# Maintainer: Puqns67 <me@puqns67.icu>
|
|
||||||
|
|
||||||
_pkgbase='smiley-sans'
|
|
||||||
pkgbase="${_pkgbase}-bin"
|
|
||||||
pkgname=({otf,ttf,woff2}-${pkgbase})
|
|
||||||
pkgver=1.1.1
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc='一款在人文观感和几何特征中寻找平衡的中文黑体'
|
|
||||||
url='https://github.com/atelier-anchor/smiley-sans'
|
|
||||||
license=('OFL')
|
|
||||||
arch=('any')
|
|
||||||
|
|
||||||
source=("${_pkgbase}-${pkgver}.zip::${url}/releases/download/v${pkgver}/${_pkgbase}-v${pkgver}.zip"
|
|
||||||
"LICENSE::${url}/raw/v${pkgver}/LICENSE")
|
|
||||||
|
|
||||||
sha512sums=('61bcc6d8957a6a7426c3a76968bea4fb4fb8a1da4dda4036c3c9533f8cc8120bfae879b51e73dc3b0399558b03709df5781fbac94deb16ed7d6a4a3e13dd837c'
|
|
||||||
'f5d63f0427d68c9414779119477f1c0ca0c51d6fc7e349934a32d85b0aa15d63a1f56a313f9b41daec25ae63e482ad3f73fc45414b21d40e0e93addb11f47db6')
|
|
||||||
|
|
||||||
_package() {
|
|
||||||
pkgdesc+=" (${pkgname%-${pkgbase}})"
|
|
||||||
provides=(${pkgname%-bin})
|
|
||||||
conflicts=(${pkgname%-bin})
|
|
||||||
|
|
||||||
install -Dm644 -t "${pkgdir}/usr/share/fonts/${_pkgbase}" ${srcdir}/*.${pkgname%-${pkgbase}}
|
|
||||||
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
||||||
}
|
|
||||||
|
|
||||||
for _pkgname in "${pkgname[@]}"; do
|
|
||||||
eval "package_${_pkgname}() {
|
|
||||||
$(declare -f "_package")
|
|
||||||
_package
|
|
||||||
}"
|
|
||||||
done
|
|
@ -1,37 +0,0 @@
|
|||||||
# Maintainer: Puqns67 <me@puqns67.icu>
|
|
||||||
|
|
||||||
pkgbase='smiley-sans'
|
|
||||||
pkgname=({otf,ttf,woff2}-${pkgbase})
|
|
||||||
pkgver=1.1.1
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc='一款在人文观感和几何特征中寻找平衡的中文黑体'
|
|
||||||
url='https://github.com/atelier-anchor/smiley-sans'
|
|
||||||
license=('OFL')
|
|
||||||
arch=('any')
|
|
||||||
makedepends=('python-brotli' 'python-fontmake' 'python-fonttools')
|
|
||||||
|
|
||||||
source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
|
|
||||||
|
|
||||||
sha512sums=('abeea79a7938af0ffe673aae74100129a3d99dd377ebab92a3426bae029c085c5f3ae3978880f0311829c80a13faa264bf061f539aafc672a93f53917c66348f')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
rm -rf "${srcdir}/${pkgbase}-${pkgver}/build/"
|
|
||||||
cd "${srcdir}/${pkgbase}-${pkgver}/"
|
|
||||||
sh "${srcdir}/${pkgbase}-${pkgver}/build.sh"
|
|
||||||
}
|
|
||||||
|
|
||||||
_package() {
|
|
||||||
pkgdesc+=" (${pkgname%-${pkgbase}})"
|
|
||||||
provides=(${pkgname})
|
|
||||||
conflicts=(${pkgname})
|
|
||||||
|
|
||||||
install -Dm644 -t "${pkgdir}/usr/share/fonts/${pkgbase}" ${srcdir}/${pkgbase}-${pkgver}/build/*.${pkgname%-${pkgbase}}
|
|
||||||
install -Dm644 "${srcdir}/${pkgbase}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
||||||
}
|
|
||||||
|
|
||||||
for _pkgname in "${pkgname[@]}"; do
|
|
||||||
eval "package_${_pkgname}() {
|
|
||||||
$(declare -f "_package")
|
|
||||||
_package
|
|
||||||
}"
|
|
||||||
done
|
|
Loading…
x
Reference in New Issue
Block a user