diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f6bc823 --- /dev/null +++ b/.gitmodules @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad7ae38 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Pkgbulids + +此处存放了个人修改/提交的部分 ArchLiunx PKGBUILD, 方便对他们统一管理. + +## Links + +* [AUR 个人帐户页面](https://aur.archlinux.org/account/Puqns67) diff --git a/packages/smiley-sans b/packages/smiley-sans new file mode 160000 index 0000000..c9f4764 --- /dev/null +++ b/packages/smiley-sans @@ -0,0 +1 @@ +Subproject commit c9f476406a133fbe19807a13d2cf7929f1de747d diff --git a/packages/smiley-sans-bin b/packages/smiley-sans-bin new file mode 160000 index 0000000..68a6e50 --- /dev/null +++ b/packages/smiley-sans-bin @@ -0,0 +1 @@ +Subproject commit 68a6e50b375e25ebc394a8644fdf12f0ed0d1f6e diff --git a/packages/smiley-sans-bin/PKGBUILD b/packages/smiley-sans-bin/PKGBUILD deleted file mode 100644 index d158faa..0000000 --- a/packages/smiley-sans-bin/PKGBUILD +++ /dev/null @@ -1,33 +0,0 @@ -# Maintainer: Puqns67 - -_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 diff --git a/packages/smiley-sans/PKGBUILD b/packages/smiley-sans/PKGBUILD deleted file mode 100644 index bbdadad..0000000 --- a/packages/smiley-sans/PKGBUILD +++ /dev/null @@ -1,37 +0,0 @@ -# Maintainer: Puqns67 - -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